diff options
author | Peter Kohaut | 2019-02-21 20:37:23 +0100 |
---|---|---|
committer | Peter Kohaut | 2019-02-23 11:39:54 +0100 |
commit | f70251819aa2e5e9715a25bf8c4ed26394a164cf (patch) | |
tree | 704615311301f80538c560da831d27962b3ca49a /engines/bladerunner/game_info.cpp | |
parent | 68f9acad0de7758b1c00524e3ae63572f13463ba (diff) | |
download | scummvm-rg350-f70251819aa2e5e9715a25bf8c4ed26394a164cf.tar.gz scummvm-rg350-f70251819aa2e5e9715a25bf8c4ed26394a164cf.tar.bz2 scummvm-rg350-f70251819aa2e5e9715a25bf8c4ed26394a164cf.zip |
BLADERUNNER: Fixed CppCheck warnings
Rat interaction at UG15 is now working exactly as in the original game.
Before the bridge didn't break if player shot the rat on it.
Diffstat (limited to 'engines/bladerunner/game_info.cpp')
-rw-r--r-- | engines/bladerunner/game_info.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/bladerunner/game_info.cpp b/engines/bladerunner/game_info.cpp index f777a86fae..e610dc96fa 100644 --- a/engines/bladerunner/game_info.cpp +++ b/engines/bladerunner/game_info.cpp @@ -56,7 +56,6 @@ bool GameInfo::open(const Common::String &name) { return false; } - uint32 unk; _actorCount = s->readUint32LE(); /* 00 */ _playerId = s->readUint32LE(); /* 01 */ _flagCount = s->readUint32LE(); /* 02 */ @@ -64,9 +63,9 @@ bool GameInfo::open(const Common::String &name) { _globalVarCount = s->readUint32LE(); /* 04 */ _sceneNamesCount = s->readUint32LE(); /* 05 */ _initialSceneId = s->readUint32LE(); /* 06 */ - unk = s->readUint32LE(); /* 07 */ + s->skip(4); /* 07 */ _initialSetId = s->readUint32LE(); /* 08 */ - unk = s->readUint32LE(); /* 09 */ + s->skip(4); /* 09 */ _waypointCount = s->readUint32LE(); /* 10 */ _sfxTrackCount = s->readUint32LE(); /* 11 */ _musicTrackCount = s->readUint32LE(); /* 12 */ @@ -76,8 +75,6 @@ bool GameInfo::open(const Common::String &name) { _coverWaypointCount = s->readUint32LE(); /* 16 */ _fleeWaypointCount = s->readUint32LE(); /* 17 */ - (void)unk; - char buf[9]; _sceneNames.resize(_sceneNamesCount); |