fix bug regarding impulse 30 (waypoint not being created)
authordiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Mon, 25 Jan 2010 17:08:10 +0000 (17:08 +0000)
committerdiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Mon, 25 Jan 2010 17:08:10 +0000 (17:08 +0000)
git-svn-id: svn://svn.icculus.org/nexuiz/trunk@8560 f962a42d-fe04-0410-a3ab-8c8b0445ebaa

data/qcsrc/server/cheats.qc

index 077f616..2b799c2 100644 (file)
@@ -93,7 +93,7 @@ float CheatImpulse(float i)
                        self.personal.strength_finished = self.strength_finished;
                        self.personal.invincible_finished = self.invincible_finished;
                        self.personal.teleport_time = time;
-                       goto cheated;
+                       break; // this part itself doesn't cheat, so let's not count this
                case CHIMPULSE_CLONE_MOVING:
                        makevectors (self.v_angle);
                        self.velocity = self.velocity + v_forward * 300;