speedaward_uid = player.crypto_idfp;
speedaward_lastupdate = time;
}
- if (speedaward_speed > speedaward_lastsent && time - speedaward_lastupdate > 1)
+ if (speedaward_speed > speedaward_lastsent && (time - speedaward_lastupdate > 1 || intermission_running))
{
string rr = CTS_RECORD;
race_send_speedaward(MSG_ALL);
speedaward_uid = player.crypto_idfp;
speedaward_lastupdate = time;
}
- if (speedaward_speed > speedaward_lastsent && time - speedaward_lastupdate > 1)
+ if (speedaward_speed > speedaward_lastsent && (time - speedaward_lastupdate > 1 || intermission_running))
{
string rr = RACE_RECORD;
race_send_speedaward(MSG_ALL);
void GetPressedKeys(entity this)
{
MUTATOR_CALLHOOK(GetPressedKeys, this);
+ if (game_stopped)
+ {
+ CS(this).pressedkeys = 0;
+ STAT(PRESSED_KEYS, this) = 0;
+ return;
+ }
+
int keys = STAT(PRESSED_KEYS, this);
keys = BITSET(keys, KEY_FORWARD, CS(this).movement.x > 0);
keys = BITSET(keys, KEY_BACKWARD, CS(this).movement.x < 0);
DrownPlayer(this);
UpdateChatBubble(this);
if (CS(this).impulse) ImpulseCommands(this);
+ GetPressedKeys(this);
if (game_stopped)
{
CSQCMODEL_AUTOUPDATE(this);
return;
}
- GetPressedKeys(this);
}
else if (IS_OBSERVER(this) && STAT(PRESSED_KEYS, this))
{