aboutsummaryrefslogtreecommitdiff
path: root/saga/isomap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'saga/isomap.cpp')
-rw-r--r--saga/isomap.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/saga/isomap.cpp b/saga/isomap.cpp
index 910f8a3838..a1af26ecac 100644
--- a/saga/isomap.cpp
+++ b/saga/isomap.cpp
@@ -129,9 +129,9 @@ void IsoMap::loadImages(const byte *resourcePointer, size_t resourceLength) {
for (i = 0; i < _tilesCount; i++) {
tileData = &_tilesTable[i];
tileData->height = readS.readByte();
- tileData->attributes = readS.readByte();
+ tileData->attributes = readS.readSByte();
tileData->offset = readS.readUint16();
- tileData->terrainMask = readS.readSint16();
+ tileData->terrainMask = readS.readUint16();
tileData->FGDBGDAttr = readS.readByte();
readS.readByte(); //skip
}
@@ -638,7 +638,7 @@ void IsoMap::drawSpritePlatform(SURFACE *ds, uint16 platformIndex, const Point &
tileIndex = findMulti(tileIndex, absU + u, absU + v, absH);
}
- drawTile(ds, tileIndex, s, &location);
+ drawTile(ds, tileIndex, s, &copyLocation);
}
}
}
@@ -791,17 +791,17 @@ void IsoMap::drawTile(SURFACE *ds, uint16 tileIndex, const Point &point, const L
}
break;
case kMaskRuleYMIN:
- if (location->u() + location->v() < THRESH0 * 2) {
+ if (location->uv() < THRESH0 * 2) {
return;
}
break;
case kMaskRuleYMID:
- if (location->u() + location->v() < THRESH8 * 2) {
+ if (location->uv() < THRESH8 * 2) {
return;
}
break;
case kMaskRuleYMAX:
- if (location->u() + location->v() < THRESH16 * 2) {
+ if (location->uv() < THRESH16 * 2) {
return;
}
break;