# HG changeset patch # User Adam Kaminski # Date 1632068219 14400 # Sun Sep 19 12:16:59 2021 -0400 # Node ID b65756238be61a80b2cc7c03823953354f57a72b # Parent 7797d4cbadc3314e40c0a20d85b341ef8040ff75 Fixed some GCC warnings. diff -r 7797d4cbadc3 -r b65756238be6 src/p_acs.cpp --- a/src/p_acs.cpp Sun Sep 19 12:10:32 2021 -0400 +++ b/src/p_acs.cpp Sun Sep 19 12:16:59 2021 -0400 @@ -4506,7 +4506,7 @@ // [BC] If we're the server, tell clients to update this actor property. // [AK] Only bother the clients if the flags were actually changed. - if ( ( NETWORK_GetState( ) == NETSTATE_SERVER ) && ( oldValue != actor->flags2 ) ) + if ( ( NETWORK_GetState( ) == NETSTATE_SERVER ) && ( static_cast( oldValue ) != actor->flags2 ) ) SERVERCOMMANDS_SetThingFlags( actor, FLAGSET_FLAGS2 ); break; @@ -4764,7 +4764,7 @@ // [AK] If we're the server, tell clients to update this actor property. // Only bother the clients if the stencil color has actually changed. - if ( ( NETWORK_GetState( ) == NETSTATE_SERVER ) && ( oldValue != actor->fillcolor ) ) + if ( ( NETWORK_GetState( ) == NETSTATE_SERVER ) && ( static_cast( oldValue ) != actor->fillcolor ) ) SERVERCOMMANDS_SetThingProperty( actor, APROP_StencilColor ); break; @@ -7500,7 +7500,7 @@ players[ulPlayer].ulWins = args[2] >= 0 ? args[2] : 0; // [AK] If we're the server, tell the clients the player's new win count. - if (( NETWORK_GetState() == NETSTATE_SERVER ) && ( oldvalue != players[ulPlayer].ulWins )) + if (( NETWORK_GetState() == NETSTATE_SERVER ) && ( static_cast( oldvalue ) != players[ulPlayer].ulWins )) SERVERCOMMANDS_SetPlayerWins( ulPlayer ); return 1; } @@ -7512,7 +7512,7 @@ players[ulPlayer].ulDeathCount = args[2] >= 0 ? args[2] : 0; // [AK] If we're the server, tell the clients the player's new death count. - if (( NETWORK_GetState() == NETSTATE_SERVER ) && ( oldvalue != players[ulPlayer].ulDeathCount )) + if (( NETWORK_GetState() == NETSTATE_SERVER ) && ( static_cast( oldvalue ) != players[ulPlayer].ulDeathCount )) SERVERCOMMANDS_SetPlayerDeaths( ulPlayer ); return 1; }