return;
self.impulse = 0;
+ // 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
return;
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);
if(navigation_findnearestwaypoint(e, FALSE))
{
setorigin(e, org);
- e.effects &~= EF_NODEPTHTEST;
+ e.effects &= ~EF_NODEPTHTEST;
e.model = "";
}
else
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)