# HG changeset patch # User Adam Kaminski # Date 1615155423 18000 # Sun Mar 07 17:17:03 2021 -0500 # Node ID dd9c603b0a0885eca63884bf44d96dd092476020 # Parent 5ee68cb9af7891d27fd0ae9372491b68ee6a8f6e Added some checks which also prevent missiles and puffs with the SERVERSIDEONLY flag from being spawned by the client. diff -r 5ee68cb9af78 -r dd9c603b0a08 src/sv_commands.cpp --- a/src/sv_commands.cpp Sun Mar 07 17:12:17 2021 -0500 +++ b/src/sv_commands.cpp Sun Mar 07 17:17:03 2021 -0500 @@ -1268,6 +1268,9 @@ if ( pActor == NULL ) return; + if ( pActor->ulNetworkFlags & NETFL_SERVERSIDEONLY ) + return; + ServerCommands::SpawnThingExactNoNetID command; command.SetType( pActor->GetClass() ); command.SetX( pActor->x ); @@ -2049,6 +2052,10 @@ if ( pActor == NULL ) return; + // [AK] If the puff is serversided only, don't tell the clients to spawn it. + if ( pActor->ulNetworkFlags & NETFL_SERVERSIDEONLY ) + return; + ServerCommands::SpawnPuffNoNetID command; command.SetX( pActor->x ); command.SetY( pActor->y ); @@ -2502,6 +2509,10 @@ if ( pMissile == NULL ) return; + // [AK] If the missile is serversided only, don't tell the clients to spawn it. + if ( pMissile->ulNetworkFlags & NETFL_SERVERSIDEONLY ) + return; + ServerCommands::SpawnMissile command; command.SetX( pMissile->x ); command.SetY( pMissile->y ); @@ -2532,6 +2543,10 @@ if ( pMissile == NULL ) return; + // [AK] If the missile is serversided only, don't tell the clients to spawn it. + if ( pMissile->ulNetworkFlags & NETFL_SERVERSIDEONLY ) + return; + ServerCommands::SpawnMissileExact command; command.SetX( pMissile->x ); command.SetY( pMissile->y );