[Scummvm-git-logs] scummvm master -> 8bf2747b32c66fb53a19d0ac8b69a29f74254877
sev-
sev at scummvm.org
Mon Apr 27 13:18:33 UTC 2020
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
8bf2747b32 HDB: Initialize class variables
Commit: 8bf2747b32c66fb53a19d0ac8b69a29f74254877
https://github.com/scummvm/scummvm/commit/8bf2747b32c66fb53a19d0ac8b69a29f74254877
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-04-27T15:18:17+02:00
Commit Message:
HDB: Initialize class variables
Changed paths:
engines/hdb/ai-init.cpp
engines/hdb/map.cpp
diff --git a/engines/hdb/ai-init.cpp b/engines/hdb/ai-init.cpp
index 124b653ef4..7e0c3298ef 100644
--- a/engines/hdb/ai-init.cpp
+++ b/engines/hdb/ai-init.cpp
@@ -1046,6 +1046,23 @@ AI::AI() {
_touchplateOff = 0;
_templeTouchpOn = 0;
_templeTouchpOff = 0;
+
+ _slugLeftFrames = _slugRightFrames = _slugAttackFrames = 0;
+ _weaponSelected = AI_NONE;
+
+ _numGems = 0;
+ _numGooCups = 0;
+ _numMonkeystones = 0;
+
+ _useSwitchOff = _useSwitchOn = 0;
+ _useHolderEmpty = _useHolderEmpty = 0;
+
+ _useSwitch2Off = _useSwitch2On = 0;
+ _useMailsorter = _useAskcomp = _useTeleporter = 0;
+ _useHandswitchOn = _useHandswitchOff = 0;
+
+ _targetDoorN = _targetDoorP = _targetDoorS = _targetDoorNv = _targetDoorPv = 0;
+ _targetDoorSv = _targetDoor2N = _targetDoor2P = 0;
}
AI::~AI() {
diff --git a/engines/hdb/map.cpp b/engines/hdb/map.cpp
index 0edc51389b..a85b21a3c9 100644
--- a/engines/hdb/map.cpp
+++ b/engines/hdb/map.cpp
@@ -69,6 +69,7 @@ Map::Map() {
_iconNum = 0;
_iconListOffset = 0;
_infoNum = 0;
+ _infoListOffset = 0;
}
Map::~Map() {
@@ -1200,7 +1201,7 @@ void Map::centerMapXY(int x, int y) {
break;
}
}
-
+
x = CLIP(x, minx, maxx);
y = CLIP(y, miny, maxy);
More information about the Scummvm-git-logs
mailing list