mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +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
1 changed files with 3 additions and 0 deletions
|
|
@ -363,6 +363,9 @@ function GameConnection::onDrop(%this, %reason)
|
||||||
if($missionRunning)
|
if($missionRunning)
|
||||||
{
|
{
|
||||||
%hasGameMode = callGamemodeFunction("onClientLeaveGame", %this);
|
%hasGameMode = callGamemodeFunction("onClientLeaveGame", %this);
|
||||||
|
// Cleanup the player
|
||||||
|
if (isObject(%client.player))
|
||||||
|
%client.player.delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
removeFromServerGuidList( %this.guid );
|
removeFromServerGuidList( %this.guid );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue