[Bug 1.0] GameCore::onClientLeaveGame
by elvince · in Torque 3D Professional · 10/13/2009 (2:16 pm) · 10 replies
Hi,
This function is not working as it is. The code has been moved from the generic function with %This as single parameter.
Fix:
Change %this in %client
This function is not working as it is. The code has been moved from the generic function with %This as single parameter.
function GameCore::onClientLeaveGame(%game, %client)
{
//echo (%game @"c4 -> "@ %game.class @" -> GameCore::onClientLeaveGame");
// Cleanup the camera
if (isObject(%this.camera))
%this.camera.delete();
// Cleanup the player
if (isObject(%this.player))
%this.player.delete();
}Here %this is null => player/camera are never deletedFix:
Change %this in %client
About the author
Recent Threads
#3
10/14/2009 (12:52 pm)
Ooops, simple oversight -- it'll be fixed.
#4
10/14/2009 (1:12 pm)
Great thanks.
#5
10/14/2009 (1:56 pm)
Hey, well spotted!
#6
10/18/2009 (7:55 pm)
I'm not sure this has been updated/fixed for 1.0.1
#7
10/18/2009 (8:22 pm)
Wait for 1.1, it's been fixed there -- me too lazy to update 2 branches :D
#8
10/18/2009 (9:07 pm)
You just chill by the pool, mate! 8D
#9
07/01/2010 (6:13 pm)
Logged: TQA-485
#10
08/02/2010 (4:43 pm)
Fixed in 1.1 Beta 2
Torque Owner Ivan Mandzhukov
Liman3D
When a new project is created,all is good.