From: <mg...@us...> - 2009-09-27 13:46:51
|
Revision: 4563 http://planeshift.svn.sourceforge.net/planeshift/?rev=4563&view=rev Author: mgist Date: 2009-09-27 13:46:45 +0000 (Sun, 27 Sep 2009) Log Message: ----------- - Fixed the error check for mount mesh. Modified Paths: -------------- trunk/src/client/pscelclient.cpp Modified: trunk/src/client/pscelclient.cpp =================================================================== --- trunk/src/client/pscelclient.cpp 2009-09-27 13:41:45 UTC (rev 4562) +++ trunk/src/client/pscelclient.cpp 2009-09-27 13:46:45 UTC (rev 4563) @@ -1900,12 +1900,18 @@ if(!mountFactname.Compare("null")) { - csRef<iMeshFactoryWrapper> mountFactory = psengine->GetLoader()->LoadFactory(mountFactname); + csRef<iMeshFactoryWrapper> mountFactory = psengine->GetLoader()->LoadFactory(mountFactname, &failed); if(!mountFactory.IsValid()) { - Error2("Couldn't find the mount's mesh factory, %s", mountFactname.GetData()); - return false; + if(failed) + { + Error2("Couldn't find the mesh factory: '%s' for mount.", mountFactname.GetData()); + psengine->UnregisterDelayedLoader(this); + return false; + } + return true; } + pcmesh = mountFactory->CreateMeshWrapper(); psengine->GetEngine()->GetMeshes()->Add(pcmesh); charApp->ApplyRider(pcmesh); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |