We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 882b750 commit c913c19Copy full SHA for c913c19
1 file changed
code/game/g_active.c
@@ -1521,7 +1521,9 @@ G_ExternalizePlayerEvent
1521
*/
1522
void G_ExternalizePlayerEvent( gentity_t *ent, int event, int eventParm ) {
1523
event &= ~EV_EVENT_BITS;
1524
- if ( EF_WARN_ASSERT( event ) ) {
+ // event could be null if it was cleared in G_RunFrame before reaching this,
1525
+ // which is possible if the server is lagging
1526
+ if ( event ) {
1527
int bits = ent->s.event & EV_EVENT_BITS;
1528
bits = ( bits + EV_EVENT_BIT1 ) & EV_EVENT_BITS;
1529
ent->s.event = event | bits;
0 commit comments