aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/map_v4.cpp
diff options
context:
space:
mode:
authorSven Hesse2009-05-31 02:15:43 +0000
committerSven Hesse2009-05-31 02:15:43 +0000
commit896df6daf337bf83f27193918eb386321c4b0166 (patch)
treec124f8f102052cdd6207e2507d097aff4bc7f44e /engines/gob/map_v4.cpp
parentc938667d4b60005a926007376305f3da8621f7c7 (diff)
downloadscummvm-rg350-896df6daf337bf83f27193918eb386321c4b0166.tar.gz
scummvm-rg350-896df6daf337bf83f27193918eb386321c4b0166.tar.bz2
scummvm-rg350-896df6daf337bf83f27193918eb386321c4b0166.zip
- A new save system for the GobEngine, one that is not fundamentally broken and is versioned. Unfortunately, this invalidates most save games created on big-endian machines, since endian-issues was a main problem with the old system
- Removed the now superfluous variables sizes svn-id: r41056
Diffstat (limited to 'engines/gob/map_v4.cpp')
-rw-r--r--engines/gob/map_v4.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/gob/map_v4.cpp b/engines/gob/map_v4.cpp
index 3a74c4b6aa..858e7972bc 100644
--- a/engines/gob/map_v4.cpp
+++ b/engines/gob/map_v4.cpp
@@ -54,7 +54,7 @@ void Map_v4::loadMapObjects(const char *avjFile) {
uint32 passPos;
var = _vm->_parse->parseVarIndex();
- variables = _vm->_inter->_variables->getAddressOff8(var, 0);
+ variables = _vm->_inter->_variables->getAddressOff8(var);
id = _vm->_inter->load16();
@@ -62,7 +62,7 @@ void Map_v4::loadMapObjects(const char *avjFile) {
warning("Woodruff Stub: loadMapObjects ID >= 65520");
return;
} else if (id == -1) {
- _passMap = (int8 *) _vm->_inter->_variables->getAddressOff8(var, 0);
+ _passMap = (int8 *) _vm->_inter->_variables->getAddressOff8(var);
return;
}
@@ -121,7 +121,7 @@ void Map_v4::loadMapObjects(const char *avjFile) {
tmpPos = mapData.pos();
mapData.seek(passPos);
if ((variables != 0) &&
- (variables != _vm->_inter->_variables->getAddressOff8(0, 0))) {
+ (variables != _vm->_inter->_variables->getAddressOff8(0))) {
_passMap = (int8 *) variables;
mapHeight = _screenHeight / _tilesHeight;
@@ -130,7 +130,7 @@ void Map_v4::loadMapObjects(const char *avjFile) {
for (int i = 0; i < mapHeight; i++) {
for (int j = 0; j < mapWidth; j++)
setPass(j, i, mapData.readSByte());
- _vm->_inter->_variables->getAddressOff8(var + i * _passWidth, mapWidth);
+ _vm->_inter->_variables->getAddressOff8(var + i * _passWidth);
}
}
mapData.seek(tmpPos);