# HG changeset patch # User Adam Kaminski # Date 1642020553 18000 # Wed Jan 12 15:49:13 2022 -0500 # Node ID 81258376b30bdb15750fbb5e3f8334e29782311a # Parent 5d0aa256911b1db3e781bb6a6f91b960017587e7 Fixed: Changing the COUNTKILL flag via A_ChangeFlag didn't update the invasion monster count. diff -r 5d0aa256911b -r 81258376b30b src/thingdef/thingdef_codeptr.cpp --- a/src/thingdef/thingdef_codeptr.cpp Mon Jan 10 21:22:25 2022 -0500 +++ b/src/thingdef/thingdef_codeptr.cpp Wed Jan 12 15:49:13 2022 -0500 @@ -4659,6 +4659,9 @@ level.total_monsters--; } + // [AK] Update the invasion monster count accordingly. + INVASION_UpdateMonsterCount( self, !kill_after ); + // [BB] If we're the server, tell clients the new number of total monsters. if ( NETWORK_GetState( ) == NETSTATE_SERVER ) SERVERCOMMANDS_SetMapNumTotalMonsters( );