aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/set.cpp
diff options
context:
space:
mode:
authorPeter Kohaut2019-02-21 20:37:23 +0100
committerPeter Kohaut2019-02-23 11:39:54 +0100
commitf70251819aa2e5e9715a25bf8c4ed26394a164cf (patch)
tree704615311301f80538c560da831d27962b3ca49a /engines/bladerunner/set.cpp
parent68f9acad0de7758b1c00524e3ae63572f13463ba (diff)
downloadscummvm-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/set.cpp')
-rw-r--r--engines/bladerunner/set.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/bladerunner/set.cpp b/engines/bladerunner/set.cpp
index 227dd81adb..f53a635057 100644
--- a/engines/bladerunner/set.cpp
+++ b/engines/bladerunner/set.cpp
@@ -94,8 +94,6 @@ bool Set::open(const Common::String &name) {
assert(_walkboxCount <= 95);
for (int i = 0; i < _walkboxCount; ++i) {
- float x, z;
-
s->read(buf, sizeof(buf));
_walkboxes[i].name = buf;
@@ -105,8 +103,8 @@ bool Set::open(const Common::String &name) {
assert(_walkboxes[i].vertexCount <= 8);
for (int j = 0; j < _walkboxes[i].vertexCount; ++j) {
- x = s->readFloatLE();
- z = s->readFloatLE();
+ float x = s->readFloatLE();
+ float z = s->readFloatLE();
_walkboxes[i].vertices[j] = Vector3(x, _walkboxes[i].altitude, z);
}