]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix mis-spelling of "receiver"
authorSamual Lenks <samual@xonotic.org>
Thu, 6 Sep 2012 18:42:28 +0000 (14:42 -0400)
committerSamual Lenks <samual@xonotic.org>
Thu, 6 Sep 2012 18:42:28 +0000 (14:42 -0400)
qcsrc/server/command/common.qc
qcsrc/server/mutators/gamemode_ctf.qc

index 13e667ad87123b72c7a282f3633d6940ec1abbd1..eae71b045c82845688d653b999d705f07854ac68 100644 (file)
@@ -146,7 +146,7 @@ float GetFilteredNumber(string input)
        return output;
 }
 
-// switch between sprint and print depending on whether the reciever is the server or a player
+// switch between sprint and print depending on whether the receiver is the server or a player
 void print_to(entity to, string input)
 {
     if(to)
index 866c1c80c8b1105c2903c2ca21e1566ee0d87a92..cb0d8eea671743eca3d79c15a0abcce70dc2a157 100644 (file)
@@ -240,13 +240,13 @@ void ctf_Handle_Retrieve(entity flag, entity player)
        flag.pass_target = world;
 }
 
-void ctf_Handle_Throw(entity player, entity reciever, float droptype)
+void ctf_Handle_Throw(entity player, entity receiver, float droptype)
 {
        entity flag = player.flagcarried;
        vector targ_origin;
        
        if(!flag) { return; }
-       if((droptype == DROP_PASS) && !reciever) { return; }
+       if((droptype == DROP_PASS) && !receiver) { return; }
        
        if(flag.speedrunning) { ctf_RespawnFlag(flag); return; }
        
@@ -265,8 +265,8 @@ void ctf_Handle_Throw(entity player, entity reciever, float droptype)
        {
                case DROP_PASS:
                {
-                       WarpZone_RefSys_Copy(flag, reciever);
-                       targ_origin = WarpZone_RefSys_TransformOrigin(reciever, flag, (0.5 * (reciever.absmin + reciever.absmax)));
+                       WarpZone_RefSys_Copy(flag, receiver);
+                       targ_origin = WarpZone_RefSys_TransformOrigin(receiver, flag, (0.5 * (receiver.absmin + receiver.absmax)));
                        flag.velocity = (normalize(targ_origin - player.origin) * autocvar_g_ctf_pass_velocity);
                        break;
                }
@@ -300,7 +300,7 @@ void ctf_Handle_Throw(entity player, entity reciever, float droptype)
                        flag.movetype = MOVETYPE_FLY;
                        flag.takedamage = DAMAGE_NO;
                        flag.pass_sender = player;
-                       flag.pass_target = reciever;
+                       flag.pass_target = receiver;
                        flag.ctf_status = FLAG_PASSING;
                        
                        // other