aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruruk2014-06-22 19:06:40 +0200
committeruruk2014-06-22 19:06:40 +0200
commit7b628c7ffc779f065fcd60caa2c1d1172460b9be (patch)
tree47053ed1ae9b18da568407c6587ce3cbb4c481ea
parent6015eddc41643ac71d7fa57a99a7378ecd5a1da7 (diff)
downloadscummvm-rg350-7b628c7ffc779f065fcd60caa2c1d1172460b9be.tar.gz
scummvm-rg350-7b628c7ffc779f065fcd60caa2c1d1172460b9be.tar.bz2
scummvm-rg350-7b628c7ffc779f065fcd60caa2c1d1172460b9be.zip
CGE2: Fix some formatting in Hero.
-rw-r--r--engines/cge2/hero.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cge2/hero.cpp b/engines/cge2/hero.cpp
index fdec752ed2..3e9a439f1a 100644
--- a/engines/cge2/hero.cpp
+++ b/engines/cge2/hero.cpp
@@ -489,7 +489,7 @@ V3D Hero::screenToGround(V2D pos) {
int Hero::cross(const V2D &a, const V2D &b) {
int x = _pos3D._x.trunc();
int z = _pos3D._z.trunc();
- int r = ((_siz.x / 3) * _vm->_eye->_z.trunc()) / (_vm->_eye->_z.trunc()- z);
+ int r = ((_siz.x / 3) * _vm->_eye->_z.trunc()) / (_vm->_eye->_z.trunc() - z);
return _vm->cross(a, b, V2D(_vm, x - r, z), V2D(_vm, x + r, z)) << 1;
}
@@ -512,7 +512,7 @@ bool CGE2Engine::contain(const V2D &a, const V2D &b, const V2D &p) {
}
long CGE2Engine::det(const V2D &a, const V2D &b, const V2D &c) {
- long n = ((long)a.x * b.y + (long)b.x * c.y + (long)c.x*a.y) - ((long)c.x*b.y + (long)b.x*a.y + (long)a.x*c.y);
+ long n = ((long)a.x * b.y + (long)b.x * c.y + (long)c.x * a.y) - ((long)c.x * b.y + (long)b.x * a.y + (long)a.x * c.y);
return n;
}