diff options
author | Matthew Hoops | 2011-10-09 16:28:30 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-10-09 16:28:30 -0400 |
commit | 5dd625ebfbfd3c79bf644b1234a1de5732c53980 (patch) | |
tree | 7758a274e02391eec146a1962896fda7592acef2 | |
parent | 09be0ed5c8732fb0fe430bc2824eb541f6f4738d (diff) | |
download | scummvm-rg350-5dd625ebfbfd3c79bf644b1234a1de5732c53980.tar.gz scummvm-rg350-5dd625ebfbfd3c79bf644b1234a1de5732c53980.tar.bz2 scummvm-rg350-5dd625ebfbfd3c79bf644b1234a1de5732c53980.zip |
PEGASUS: Disable AI energy warnings in the demo
The videos don't exist, so you'd be in for a surprise after playing for an hour
-rw-r--r-- | engines/pegasus/neighborhood/neighborhood.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/pegasus/neighborhood/neighborhood.cpp b/engines/pegasus/neighborhood/neighborhood.cpp index e17e1008e6..eb1d0df2bf 100644 --- a/engines/pegasus/neighborhood/neighborhood.cpp +++ b/engines/pegasus/neighborhood/neighborhood.cpp @@ -1348,8 +1348,8 @@ void Neighborhood::setUpAIRules() { if (g_AIArea) { g_AIArea->forceAIUnlocked(); - if (getObjectID() == kPrehistoricID || getObjectID() == kNoradAlphaID || - getObjectID() == kNoradDeltaID || getObjectID() == kMarsID || getObjectID() == kWSCID) { + if (!_vm->isDemo() && (getObjectID() == kPrehistoricID || getObjectID() == kNoradAlphaID || + getObjectID() == kNoradDeltaID || getObjectID() == kMarsID || getObjectID() == kWSCID)) { AIEnergyMonitorCondition *condition50 = new AIEnergyMonitorCondition(kWorriedEnergy); AIPlayMessageAction *message = new AIPlayMessageAction("Images/AI/Globals/XGLOB4A", false); |