mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 20:17:49 +00:00
CGE2: Repair FXP's operator=().
This commit is contained in:
parent
c6033e0467
commit
5b9c51d4b4
@ -56,7 +56,7 @@ class FXP {
|
|||||||
public:
|
public:
|
||||||
FXP(void) : v(0) {}
|
FXP(void) : v(0) {}
|
||||||
FXP (int i0, int f0 = 0) : v((i0 * 256) + ((i0 < 0) ? -f0 : f0)) {}
|
FXP (int i0, int f0 = 0) : v((i0 * 256) + ((i0 < 0) ? -f0 : f0)) {}
|
||||||
FXP operator=(const int &x) { v = x << 8; return *this; }
|
FXP &operator=(const int &x) { v = x << 8; return *this; }
|
||||||
FXP operator+(const FXP &x) const { FXP y; y.v = v + x.v; return y; }
|
FXP operator+(const FXP &x) const { FXP y; y.v = v + x.v; return y; }
|
||||||
FXP operator-(const FXP &x) const { FXP y; y.v = v - x.v; return y; }
|
FXP operator-(const FXP &x) const { FXP y; y.v = v - x.v; return y; }
|
||||||
FXP operator*(const FXP &x) const;
|
FXP operator*(const FXP &x) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user