From: DaveG <da...@us...> - 2006-01-31 04:42:39
|
Update of /cvsroot/planeshift/planeshift/src/client/sound In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26444/src/client/sound Modified Files: pssoundmngr.cpp Log Message: fix for latest CS Index: pssoundmngr.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/sound/pssoundmngr.cpp,v retrieving revision 1.129 retrieving revision 1.130 diff -C2 -d -r1.129 -r1.130 *** pssoundmngr.cpp 29 Jan 2006 10:14:51 -0000 1.129 --- pssoundmngr.cpp 31 Jan 2006 04:42:31 -0000 1.130 *************** *** 46,49 **** --- 46,50 ---- #include <iutil/document.h> #include <csutil/xmltiny.h> + #include <csgeom/sphere.h> // PS includes *************** *** 1579,1586 **** csRef<iMeshWrapper> mesh = searchSector->GetMeshes()->FindByName( pso->GetMesh() ); ! csRef<iMovable> move = mesh->GetMovable(); ! csVector3 rad; ! csVector3 pos; ! mesh->GetRadius(rad,pos); pso->SetPosition( pos ); emitters.Push( pso ); --- 1580,1585 ---- csRef<iMeshWrapper> mesh = searchSector->GetMeshes()->FindByName( pso->GetMesh() ); ! //csRef<iMovable> move = mesh->GetMovable(); ! csVector3 pos = mesh->GetRadius().GetCenter(); pso->SetPosition( pos ); emitters.Push( pso ); |