diff options
author | uruk | 2014-08-11 16:06:10 +0200 |
---|---|---|
committer | uruk | 2014-08-11 16:06:10 +0200 |
commit | 5e375d0796b4da822ceb8e3d4294d9189101241a (patch) | |
tree | 4ebafd86c2760124798cbb146786d37fbab34313 /engines | |
parent | b3fed6c36904287713ca82c08606b882ceaeff68 (diff) | |
download | scummvm-rg350-5e375d0796b4da822ceb8e3d4294d9189101241a.tar.gz scummvm-rg350-5e375d0796b4da822ceb8e3d4294d9189101241a.tar.bz2 scummvm-rg350-5e375d0796b4da822ceb8e3d4294d9189101241a.zip |
CGE2: Fix formatting of operators' return values in vga13h.h.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cge2/vga13h.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/cge2/vga13h.h b/engines/cge2/vga13h.h index 4d2d637212..652727cb32 100644 --- a/engines/cge2/vga13h.h +++ b/engines/cge2/vga13h.h @@ -63,10 +63,10 @@ public: FXP operator/(const FXP& x) const; //int& operator = (int& a, const FXP& b) { return a = b.i; } - friend int& operator+=(int& a, const FXP& b) { return a += b.trunc(); } - friend int& operator-=(int& a, const FXP& b) { return a -= b.trunc(); } - friend FXP& operator+=(FXP& a, const int& b) { a.v += b << 8; return a; } - friend FXP& operator-=(FXP& a, const int& b) { a.v -= b << 8; return a; } + friend int &operator+=(int& a, const FXP& b) { return a += b.trunc(); } + friend int &operator-=(int& a, const FXP& b) { return a -= b.trunc(); } + friend FXP &operator+=(FXP& a, const int& b) { a.v += b << 8; return a; } + friend FXP &operator-=(FXP& a, const int& b) { a.v -= b << 8; return a; } friend bool operator==(const FXP &a, const FXP &b) { return a.v == b.v; } friend bool operator!=(const FXP &a, const FXP &b) { return a.v != b.v; } friend bool operator<(const FXP &a, const FXP &b) { return a.v < b.v; } @@ -97,7 +97,7 @@ public: class V2D : public Common::Point { CGE2Engine *_vm; public: - V2D& operator=(const V3D &p3) { + V2D &operator=(const V3D &p3) { FXP m = _vm->_eye->_z / (p3._z - _vm->_eye->_z); FXP posx = _vm->_eye->_x + (_vm->_eye->_x - p3._x) * m; x = posx.round(); |