Engine crashes with precipitation object.
by Markus Nuebel · in Torque Game Engine · 12/23/2003 (12:51 am) · 4 replies
When you add a precipitation object. e.g. HeavyRain to a scene and this object is active during mission start (SinglePlay), the engine crashes in precipitation.cc at the line:
The problem is, that the advanceTime method of Precipitation is called, before the player has connected to the game and a not null control object is set on the gameconnection object.
I think a check, similar to the one:
has to be added for the control object, too:
Best regards
-- Markus
control->getCameraTransform(&pos, &camMat);(conrol is null)
The problem is, that the advanceTime method of Precipitation is called, before the player has connected to the game and a not null control object is set on the gameconnection object.
I think a check, similar to the one:
GameConnection * con = GameConnection::getServerConnection();
if(!con)
return;has to be added for the control object, too:
ShapeBase* control = con->getControlObject(); if(!control) return;
Best regards
-- Markus
About the author
Associate Stefan Beffy Moises