mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
Merge pull request #298 from Azaezel/alpha40_triggerTroubleTre
fix for trigger::testobjects vector population
This commit is contained in:
commit
93ce5d0cfa
1 changed files with 6 additions and 2 deletions
|
|
@ -394,8 +394,12 @@ bool Trigger::setTickCmd(void *object, const char *index, const char *data)
|
||||||
void Trigger::testObjects()
|
void Trigger::testObjects()
|
||||||
{
|
{
|
||||||
Vector<SceneObject*> foundobjs;
|
Vector<SceneObject*> foundobjs;
|
||||||
gServerContainer.findObjectList(getWorldBox(), 0xFFFFFFFF, &foundobjs);
|
foundobjs.clear();
|
||||||
for (S32 i = 0; i < foundobjs.size(); ++i)
|
if (getSceneManager() && getSceneManager()->getContainer() && getSceneManager()->getZoneManager())
|
||||||
|
getSceneManager()->getContainer()->findObjectList(getWorldBox(), 0xFFFFFFFF, &foundobjs);
|
||||||
|
else return;
|
||||||
|
|
||||||
|
for (S32 i = 0; i < foundobjs.size(); i++)
|
||||||
{
|
{
|
||||||
GameBase* so = dynamic_cast<GameBase*>(foundobjs[i]);
|
GameBase* so = dynamic_cast<GameBase*>(foundobjs[i]);
|
||||||
if (so)
|
if (so)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue