X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fcl_impulse.qc;h=dc8dabee6c719861d0c34b98fe880fa762a9c03a;hp=09ed68993ca4db9a4f28679ea590379ce42287c6;hb=61ff03e493f0cdae7d4a7b4332481f1a3971c3c7;hpb=315ab0f2f959b04e5a10f2d98ab95656eab74ee3 diff --git a/qcsrc/server/cl_impulse.qc b/qcsrc/server/cl_impulse.qc index 09ed68993c..dc8dabee6c 100644 --- a/qcsrc/server/cl_impulse.qc +++ b/qcsrc/server/cl_impulse.qc @@ -46,8 +46,8 @@ void ImpulseCommands (void) return; self.impulse = 0; - // forbid impulses when round is over (but not during the countdown to round start) - if(round_handler_IsActive() && round_handler_AwaitingNextRound()) + // forbid impulses when not in round time + if(round_handler_IsActive() && !round_handler_IsRoundStarted()) return; if (timeout_status == TIMEOUT_ACTIVE) //don't allow any impulses while the game is paused @@ -98,8 +98,7 @@ void ImpulseCommands (void) W_PreviousWeapon (2); break; case 17: - if (!g_minstagib) - W_ThrowWeapon(W_CalculateProjectileVelocity(self.velocity, v_forward * 750, FALSE), '0 0 0', TRUE); + W_ThrowWeapon(W_CalculateProjectileVelocity(self.velocity, v_forward * 750, FALSE), '0 0 0', TRUE); break; case 18: W_NextWeapon (1); @@ -169,7 +168,7 @@ void ImpulseCommands (void) case 33: if(self.deadflag == DEAD_NO && teamplay) { - if not(MUTATOR_CALLHOOK(HelpMePing)) + if (!MUTATOR_CALLHOOK(HelpMePing)) { wp = WaypointSprite_Attach("helpme", TRUE, RADARICON_HELPME, '1 0.5 0'); if(!wp) @@ -257,7 +256,7 @@ void ImpulseCommands (void) case 104: e = navigation_findnearestwaypoint(self, FALSE); if (e) - if not(e.wpflags & WAYPOINTFLAG_GENERATED) + if (!(e.wpflags & WAYPOINTFLAG_GENERATED)) { bprint(strcat("Waypoint removed at ",vtos(e.origin),"\n")); waypoint_remove(e); @@ -273,7 +272,7 @@ void ImpulseCommands (void) for(e = findchain(classname, "waypoint"); e; e = e.chain) { e.colormod = '0.5 0.5 0.5'; - e.effects &~= EF_NODEPTHTEST | EF_RED | EF_BLUE; + e.effects &= ~(EF_NODEPTHTEST | EF_RED | EF_BLUE); } e2 = navigation_findnearestwaypoint(self, FALSE); navigation_markroutes(e2); @@ -300,7 +299,7 @@ void ImpulseCommands (void) { print("cannot reach me: ", etos(e), " ", vtos(e.origin), "\n"); e.colormod_x = 8; - if not(e.effects & EF_NODEPTHTEST) // not already reported before + if(!(e.effects & EF_NODEPTHTEST)) // not already reported before ++m; e.effects |= EF_NODEPTHTEST | EF_RED; ++i; @@ -319,7 +318,7 @@ void ImpulseCommands (void) if(navigation_findnearestwaypoint(e, FALSE)) { setorigin(e, org); - e.effects &~= EF_NODEPTHTEST; + e.effects &= ~EF_NODEPTHTEST; e.model = ""; } else @@ -342,7 +341,7 @@ void ImpulseCommands (void) start = findchainflags(flags, FL_ITEM); for(e = start; e; e = e.chain) { - e.effects &~= EF_NODEPTHTEST | EF_RED | EF_BLUE; + e.effects &= ~(EF_NODEPTHTEST | EF_RED | EF_BLUE); e.colormod = '0.5 0.5 0.5'; } for(e = start; e; e = e.chain)