mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
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:
parent
229cc9709e
commit
26ea1b60fc
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue