aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorSven Hesse2009-07-29 15:57:50 +0000
committerSven Hesse2009-07-29 15:57:50 +0000
commitca7c35bc9a87a28cc34bbbba430f5b50ebab9463 (patch)
tree87c119770107a4153c385171f5a0b3bbf94af76c /engines
parent2eb1a62a96ef19f776fea4067973f501138be621 (diff)
downloadscummvm-rg350-ca7c35bc9a87a28cc34bbbba430f5b50ebab9463.tar.gz
scummvm-rg350-ca7c35bc9a87a28cc34bbbba430f5b50ebab9463.tar.bz2
scummvm-rg350-ca7c35bc9a87a28cc34bbbba430f5b50ebab9463.zip
Oops, fixing a regression I created with the Map_v4/Map_v2-merge
svn-id: r42894
Diffstat (limited to 'engines')
-rw-r--r--engines/gob/map_v2.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/engines/gob/map_v2.cpp b/engines/gob/map_v2.cpp
index a13cd96249..51caad74b8 100644
--- a/engines/gob/map_v2.cpp
+++ b/engines/gob/map_v2.cpp
@@ -79,9 +79,11 @@ void Map_v2::loadMapObjects(const char *avjFile) {
_screenWidth = 640;
_screenHeight = 400;
} else if (_widthByte == 3) {
+ _passWidth = 65;
_screenWidth = 640;
_screenHeight = 200;
} else {
+ _passWidth = 40;
_screenWidth = 320;
_screenHeight = 200;
}
@@ -117,10 +119,10 @@ void Map_v2::loadMapObjects(const char *avjFile) {
_wayPoints[i].notWalkable = mapData.readSByte();
}
- if (_widthByte == 4)
- _mapWidth = VAR(17);
-
- _passWidth = _mapWidth;
+ if (_widthByte == 4) {
+ _mapWidth = VAR(17);
+ _passWidth = _mapWidth;
+ }
// In the original asm, this writes byte-wise into the variables-array
tmpPos = mapData.pos();