add a setControllingClient method to vehicles referencing the shapebase class direct.

fix shapebase::setControllingClient swap getControllingObject() test
This commit is contained in:
AzaezelX 2022-12-25 14:48:10 -06:00
parent 54a2235128
commit d960f941e1
3 changed files with 6 additions and 1 deletions

View file

@ -1572,7 +1572,7 @@ void ShapeBase::setControllingClient( GameConnection* client )
gSFX3DWorld->setListener( NULL );
}
else if( client && client->isConnectionToServer() && !getControllingObject() )
else if( client && client->isConnectionToServer() && (getControllingObject() != this) )
{
// We're on the local client and not controlled by another object, so make
// us the current SFX listener.