diff options
author | Peter Kohaut | 2016-10-04 18:59:25 +0200 |
---|---|---|
committer | Peter Kohaut | 2016-10-04 18:59:25 +0200 |
commit | 5d1e1131dc48f65de2f7c00bef3989df8d0d809f (patch) | |
tree | 3e4c1a46b1c2dc846a9eeb13dc37f89ade93dc49 /engines/bladerunner/actor.cpp | |
parent | 2b835eb14dd5974b89e860066140ee35243f1c9a (diff) | |
download | scummvm-rg350-5d1e1131dc48f65de2f7c00bef3989df8d0d809f.tar.gz scummvm-rg350-5d1e1131dc48f65de2f7c00bef3989df8d0d809f.tar.bz2 scummvm-rg350-5d1e1131dc48f65de2f7c00bef3989df8d0d809f.zip |
BLADERUNNER: code formatting
Diffstat (limited to 'engines/bladerunner/actor.cpp')
-rw-r--r-- | engines/bladerunner/actor.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/engines/bladerunner/actor.cpp b/engines/bladerunner/actor.cpp index d1493b9300..f6ce1c0414 100644 --- a/engines/bladerunner/actor.cpp +++ b/engines/bladerunner/actor.cpp @@ -985,10 +985,8 @@ bool Actor::walkFindU1(const Vector3 &startPosition, const Vector3 &targetPositi int facing2 = facing; int facing3 = 0; while (true) { - float cos = cos_1024(facing); - float sin = sin_1024(facing); - float rotatedX = size * sin + targetPosition.x; - float rotatedZ = size * cos + targetPosition.z; + float rotatedX = size * sin_1024(facing) + targetPosition.x; + float rotatedZ = size * cos_1024(facing) + targetPosition.z; if (!_walkInfo->isXYZEmpty(rotatedX, targetPosition.y, rotatedZ, _id)) { if (_vm->_scene->_set->findWalkbox(rotatedX, rotatedZ) >= 0) { @@ -1005,10 +1003,8 @@ bool Actor::walkFindU1(const Vector3 &startPosition, const Vector3 &targetPositi facing3 += 20; } - cos = cos_1024(facing2); - sin = sin_1024(facing2); - rotatedX = size * sin + targetPosition.x; - rotatedZ = size * cos + targetPosition.z; + rotatedX = size * sin_1024(facing2) + targetPosition.x; + rotatedZ = size * cos_1024(facing2) + targetPosition.z; if (!_walkInfo->isXYZEmpty(rotatedX, targetPosition.y, rotatedZ, _id)) { if (_vm->_scene->_set->findWalkbox(rotatedX, rotatedZ) >= 0) { |