From f20d33f1305ace5f7cc9c7cf9c2a299c35bc0c77 Mon Sep 17 00:00:00 2001 From: Le Philousophe Date: Thu, 30 May 2019 15:44:30 +0200 Subject: CRYOMNI3D: Make ignored reads explicit --- engines/cryomni3d/wam_parser.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'engines/cryomni3d/wam_parser.cpp') 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(); -- cgit v1.2.3