aboutsummaryrefslogtreecommitdiff
path: root/engines/cryomni3d/wam_parser.cpp
diff options
context:
space:
mode:
authorLe Philousophe2019-05-30 15:44:30 +0200
committerEugene Sandulenko2019-06-01 22:43:48 +0200
commitf20d33f1305ace5f7cc9c7cf9c2a299c35bc0c77 (patch)
treed81c26cebe6ee43cf01e65d442726c651ddfc6a6 /engines/cryomni3d/wam_parser.cpp
parent7ae6e1af1e2fb190cf3ae4ce82b08fb3cddb868e (diff)
downloadscummvm-rg350-f20d33f1305ace5f7cc9c7cf9c2a299c35bc0c77.tar.gz
scummvm-rg350-f20d33f1305ace5f7cc9c7cf9c2a299c35bc0c77.tar.bz2
scummvm-rg350-f20d33f1305ace5f7cc9c7cf9c2a299c35bc0c77.zip
CRYOMNI3D: Make ignored reads explicit
Diffstat (limited to 'engines/cryomni3d/wam_parser.cpp')
-rw-r--r--engines/cryomni3d/wam_parser.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/engines/cryomni3d/wam_parser.cpp b/engines/cryomni3d/wam_parser.cpp
index 75bbfb082a..8119cda47b 100644
--- a/engines/cryomni3d/wam_parser.cpp
+++ b/engines/cryomni3d/wam_parser.cpp
@@ -32,10 +32,11 @@ void WAMParser::loadStream(Common::ReadStream &stream) {
_places.clear();
- stream.readByte();
- stream.readByte();
- stream.read(str, 16);
- stream.readUint32LE();
+ // These are unused and unknown values
+ (void) stream.readByte();
+ (void) stream.readByte();
+ (void) stream.read(str, 16);
+ (void) stream.readUint32LE();
uint nPlaces = stream.readByte();
//debug("nPlaces = %u", nPlaces);
@@ -62,14 +63,14 @@ void WAMParser::loadStream(Common::ReadStream &stream) {
_places.erase(oldPlace);
}
//debug("nPlaceId = %u", place.placeId);
- stream.readUint32LE();
+ (void) stream.readUint32LE();
uint nTransitions = stream.readByte();
//debug("nTransitions = %u", nTransitions);
uint nZones = stream.readByte();
//debug("nZones = %u", nZones);
for (uint j = 0; j < nTransitions; j++) {
Transition trans;
- stream.readUint32LE();
+ (void) stream.readUint32LE();
uint nAnimations = stream.readByte();
for (uint k = 0; k < 8; k++) {
stream.read(str, 16);
@@ -78,9 +79,10 @@ void WAMParser::loadStream(Common::ReadStream &stream) {
nAnimations--;
}
}
- stream.readUint32LE();
+ (void) stream.readUint32LE();
trans.dstId = stream.readUint32LE();
- stream.readByte();
+ // Unused byte
+ (void) stream.readByte();
trans.srcAlpha = stream.readDoubleLE();
trans.srcBeta = stream.readDoubleLE();
trans.dstAlpha = stream.readDoubleLE();