From: <wel...@us...> - 2009-11-21 07:14:41
|
Revision: 4763 http://planeshift.svn.sourceforge.net/planeshift/?rev=4763&view=rev Author: weltall2 Date: 2009-11-21 07:14:35 +0000 (Sat, 21 Nov 2009) Log Message: ----------- fixed weather crashes and removed double calls to Destroy() Modified Paths: -------------- trunk/src/client/modehandler.cpp Modified: trunk/src/client/modehandler.cpp =================================================================== --- trunk/src/client/modehandler.cpp 2009-11-21 04:01:08 UTC (rev 4762) +++ trunk/src/client/modehandler.cpp 2009-11-21 07:14:35 UTC (rev 4763) @@ -689,15 +689,15 @@ { if (downfall) { - downfall->StopFollow(); - downfall->Destroy(); + //downfall->StopFollow(); + //downfall->Destroy(); delete downfall; downfall = NULL; } if (fog) { - fog->Destroy(); + //fog->Destroy(); delete fog; fog = NULL; } @@ -1565,12 +1565,12 @@ } } - // Check if fog need update if (fog) { fog->Update(delta); } + // Check for removal of fog if (fog && ri->fog_condition == WEATHER_CLEAR) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |