forked from fte/fteqw
1
0
Fork 0

Reduce the chances of input_cursor_entity getting stale values on map changes.

This commit is contained in:
Shpoike 2024-08-22 03:04:33 +01:00
parent b3c5cb8ae1
commit d45687ccf0
1 changed files with 4 additions and 0 deletions

View File

@ -2315,6 +2315,10 @@ void SV_Begin_Core(client_t *split)
return;
}
split->spawned = true;
split->lastcmd.cursor_entitynumber = 0; //make sure this doesn't get reapplied between maps...
split->lastcmd.buttons = 0;
split->lastcmd.impulse = 0;
split->lastcmd.weapon = 0;
#ifdef Q2SERVER
if (ge)