aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/ai-init.cpp3
-rw-r--r--engines/hdb/ai.h10
2 files changed, 13 insertions, 0 deletions
diff --git a/engines/hdb/ai-init.cpp b/engines/hdb/ai-init.cpp
index c19037ff8d..e203ed5885 100644
--- a/engines/hdb/ai-init.cpp
+++ b/engines/hdb/ai-init.cpp
@@ -968,6 +968,9 @@ void AI::restartSystem() {
// Clear Bridges
memset(&_bridges[0], 0, sizeof(_bridges));
_numBridges = 0;
+
+ // No Gate Puddles
+ _gatePuddles = 0;
}
void AI::initAnimInfo() {
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h
index f37bb81579..59306389a0 100644
--- a/engines/hdb/ai.h
+++ b/engines/hdb/ai.h
@@ -41,6 +41,7 @@ enum {
kMaxLuaEnts = 50,
kMaxCallbacks = 20,
kMaxFairystones = 5,
+ kMaxGatePuddles = 8,
kMaxBridges = 10,
kDelay5Seconds = 5 * kGameFPS,
kPlayerMoveSpeed = 4,
@@ -1032,6 +1033,15 @@ public:
}
bool completeDelivery(const char *id);
+ // Gate Puddles
+ int _gatePuddles;
+ void addGatePuddle(int amount) {
+ _gatePuddles += amount;
+ }
+ int getGatePuddles() {
+ return _gatePuddles;
+ }
+
// Player Variables
bool _playerDead;
bool _playerInvisible; // While on RailRider for example