BGE: fix a compatibility problem since logic patch with YoFrankie (and other games I guess). State actuators will now execute before any other actuators to make sure that the actuators link count are up to date when they execute.

This commit is contained in:
Benoit Bolsee
2009-05-15 20:51:32 +00:00
parent 58db6df069
commit ef8f92ffe6
6 changed files with 60 additions and 28 deletions

View File

@@ -312,16 +312,6 @@ void SCA_LogicManager::AddTriggeredController(SCA_IController* controller, SCA_I
}
}
void SCA_LogicManager::AddActiveActuator(SCA_IActuator* actua,bool event)
{
actua->SetActive(true);
actua->Activate(m_activeActuators);
actua->AddEvent(event);
}
SCA_EventManager* SCA_LogicManager::FindEventManager(int eventmgrtype)
{
// find an eventmanager of a certain type