Skip to content

Commit

Permalink
remove unnecessary event warning assertion
Browse files Browse the repository at this point in the history
Remove an unnecessary assertion that could be hit under somewhat normal conditions.
  • Loading branch information
Chomenor committed Jul 24, 2022
1 parent 882b750 commit c913c19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/game/g_active.c
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,9 @@ G_ExternalizePlayerEvent
*/
void G_ExternalizePlayerEvent( gentity_t *ent, int event, int eventParm ) {
event &= ~EV_EVENT_BITS;
if ( EF_WARN_ASSERT( event ) ) {
// event could be null if it was cleared in G_RunFrame before reaching this,
// which is possible if the server is lagging
if ( event ) {
int bits = ent->s.event & EV_EVENT_BITS;
bits = ( bits + EV_EVENT_BIT1 ) & EV_EVENT_BITS;
ent->s.event = event | bits;
Expand Down

0 comments on commit c913c19

Please sign in to comment.