Skip to content

Commit c913c19

Browse files
committed
remove unnecessary event warning assertion
Remove an unnecessary assertion that could be hit under somewhat normal conditions.
1 parent 882b750 commit c913c19

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

code/game/g_active.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,9 @@ G_ExternalizePlayerEvent
15211521
*/
15221522
void G_ExternalizePlayerEvent( gentity_t *ent, int event, int eventParm ) {
15231523
event &= ~EV_EVENT_BITS;
1524-
if ( EF_WARN_ASSERT( event ) ) {
1524+
// 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 ) {
15251527
int bits = ent->s.event & EV_EVENT_BITS;
15261528
bits = ( bits + EV_EVENT_BIT1 ) & EV_EVENT_BITS;
15271529
ent->s.event = event | bits;

0 commit comments

Comments
 (0)