25 May 2012 08:48
SF.net SVN: cel:[4896] cel/trunk/plugins/propclass/dynworld
Revision: 4896
http://cel.svn.sourceforge.net/cel/?rev=4896&view=rev
Author: jorrit
Date: 2012-05-25 06:48:59 +0000 (Fri, 25 May 2012)
Log Message:
-----------
Lights now work (forgot to place them in the sector) and also the dynamic
body is now attached to the light.
Modified Paths:
--------------
cel/trunk/plugins/propclass/dynworld/dynworld.cpp
cel/trunk/plugins/propclass/dynworld/dynworld.h
Modified: cel/trunk/plugins/propclass/dynworld/dynworld.cpp
===================================================================
--- cel/trunk/plugins/propclass/dynworld/dynworld.cpp 2012-05-25 04:23:25 UTC (rev 4895)
+++ cel/trunk/plugins/propclass/dynworld/dynworld.cpp 2012-05-25 06:48:59 UTC (rev 4896)
<at> <at> -1464,6 +1464,10 <at> <at>
{
light = world->engine->CreateLight (factory->GetName (),
trans.GetOrigin (), factory->GetLightFactory ());
+ iLightList* ll = cell->sector->GetLights ();
+ ll->Add (light);
+ light->GetMovable ()->SetTransform (trans);
+ light->GetMovable ()->UpdateMove ();
}
void DynamicObject::PrepareMesh (celPcDynamicWorld* world)
<at> <at> -1617,7 +1621,7 <at> <at>
(Continue reading)
RSS Feed