mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-23 19:52:23 +00:00
# Fixed some trigger bugs.
- Conditions were not properly converted to JavaScript (not read from the XML file correctly either). - Added an OrderFromTriggers function so that triggers can give orders which ignore fog of war. - Fixed some spelling mistakes in TriggerSpecs.xml (parameter vs. parameters). - Moved trigger update to CSimulation update, which is more correct. This was SVN commit r4821.
This commit is contained in:
@@ -375,7 +375,8 @@ bool CEntity::processContactAction( CEntityOrder* current, size_t UNUSED(timeste
|
||||
return false;
|
||||
}
|
||||
|
||||
if( g_Game->GetWorld()->GetLOSManager()->GetUnitStatus( target, m_player ) == UNIT_HIDDEN )
|
||||
if( current->m_source != CEntityOrder::SOURCE_TRIGGERS &&
|
||||
g_Game->GetWorld()->GetLOSManager()->GetUnitStatus( target, m_player ) == UNIT_HIDDEN )
|
||||
{
|
||||
popOrder();
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user