ensure controlling client object is removed post onClienLeaveGame so each controllable object module doesn't have to remmber to do so

This commit is contained in:
AzaezelX 2025-08-09 19:54:51 -05:00
parent 229cc9709e
commit 26ea1b60fc

View file

@ -363,6 +363,9 @@ function GameConnection::onDrop(%this, %reason)
if($missionRunning)
{
%hasGameMode = callGamemodeFunction("onClientLeaveGame", %this);
// Cleanup the player
if (isObject(%client.player))
%client.player.delete();
}
removeFromServerGuidList( %this.guid );