diff options
author | Matthew Hoops | 2013-12-14 11:10:13 -0500 |
---|---|---|
committer | Matthew Hoops | 2013-12-14 11:18:32 -0500 |
commit | 6477525db0094825be56ffedb3b12ade14bb66ae (patch) | |
tree | 971e2aa3adbbe58939521fcff775dc85df643716 /engines/pegasus/neighborhood/prehistoric/prehistoric.cpp | |
parent | 42c04c8735fde38532edba8ee36c9c03eef2c465 (diff) | |
download | scummvm-rg350-6477525db0094825be56ffedb3b12ade14bb66ae.tar.gz scummvm-rg350-6477525db0094825be56ffedb3b12ade14bb66ae.tar.bz2 scummvm-rg350-6477525db0094825be56ffedb3b12ade14bb66ae.zip |
PEGASUS: Fix regression with Prehistoric AI rules ordering
Diffstat (limited to 'engines/pegasus/neighborhood/prehistoric/prehistoric.cpp')
-rw-r--r-- | engines/pegasus/neighborhood/prehistoric/prehistoric.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/pegasus/neighborhood/prehistoric/prehistoric.cpp b/engines/pegasus/neighborhood/prehistoric/prehistoric.cpp index d62b069e46..578ce57f26 100644 --- a/engines/pegasus/neighborhood/prehistoric/prehistoric.cpp +++ b/engines/pegasus/neighborhood/prehistoric/prehistoric.cpp @@ -124,11 +124,6 @@ void Prehistoric::setUpAIRules() { AIHasItemCondition *hasLogCondition = new AIHasItemCondition(kHistoricalLog); AIRule *rule = new AIRule(hasLogCondition, doneAction); g_AIArea->addAIRule(rule); - } else { - AIPlayMessageAction *messageAction = new AIPlayMessageAction("Images/AI/Prehistoric/XP25W", false); - AIHasItemCondition *hasLogCondition = new AIHasItemCondition(kHistoricalLog); - AIRule *rule = new AIRule(hasLogCondition, messageAction); - g_AIArea->addAIRule(rule); } if (!_vm->isOldDemo()) { @@ -167,6 +162,13 @@ void Prehistoric::setUpAIRules() { rule = new AIRule(timerCondition, messageAction); g_AIArea->addAIRule(rule); } + + if (!_vm->isDemo()) { + AIPlayMessageAction *messageAction = new AIPlayMessageAction("Images/AI/Prehistoric/XP25W", false); + AIHasItemCondition *hasLogCondition = new AIHasItemCondition(kHistoricalLog); + AIRule *rule = new AIRule(hasLogCondition, messageAction); + g_AIArea->addAIRule(rule); + } } } |