diff options
author | Matthew Hoops | 2012-06-09 17:31:18 -0400 |
---|---|---|
committer | Matthew Hoops | 2012-06-09 17:31:18 -0400 |
commit | 060449042a532e6cd7319ea36376021d76dde470 (patch) | |
tree | 14801116a49c58ee4a6527ec57fe06b5e6dc44ce /engines | |
parent | 4a3518dc92762cbcd8bda8786c975af021564b37 (diff) | |
download | scummvm-rg350-060449042a532e6cd7319ea36376021d76dde470.tar.gz scummvm-rg350-060449042a532e6cd7319ea36376021d76dde470.tar.bz2 scummvm-rg350-060449042a532e6cd7319ea36376021d76dde470.zip |
TONY: Silence some gcc warnings
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tony/loc.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/tony/loc.cpp b/engines/tony/loc.cpp index 146ca65533..61271d7f39 100644 --- a/engines/tony/loc.cpp +++ b/engines/tony/loc.cpp @@ -1226,10 +1226,10 @@ short RMCharacter::scanLine(const RMPoint &punto) { Lcount++; if (Lstatus) { Ldx = Lspeed * Lcount; - Ldy = Lslope * Ldx; + Ldy = (int)(Lslope * Ldx); } else { Ldy = Lspeed * Lcount; - Ldx = Lslope * Ldy; + Ldx = (int)(Lslope * Ldy); } Lscan.x = Lstart.x + Ldx; @@ -1285,10 +1285,10 @@ RMPoint RMCharacter::invScanLine(const RMPoint &punto) { Lcount++; if (Lstatus) { Ldx = Lspeed * Lcount; - Ldy = Lslope * Ldx; + Ldy = (int)(Lslope * Ldx); } else { Ldy = Lspeed * Lcount; - Ldx = Lslope * Ldy; + Ldx = (int)(Lslope * Ldy); } Lscan.x = Lstart.x + Ldx; Lscan.y = Lstart.y + Ldy; @@ -1402,7 +1402,7 @@ void RMCharacter::doFrame(CORO_PARAM, RMGfxTargetBuffer *bigBuf, int loc) { // If we are going horizontally if (walkstatus == 1) { dx = walkspeed * walkcount; - dy = slope * dx; + dy = (int)(slope * dx); _pos.x = linestart.x + dx; _pos.y = linestart.y + dy; @@ -1417,7 +1417,7 @@ void RMCharacter::doFrame(CORO_PARAM, RMGfxTargetBuffer *bigBuf, int loc) { // If we are going vertical if (walkstatus == 0) { dy = walkspeed * walkcount; - dx = slope * dy; + dx = (int)(slope * dy); _pos.x = linestart.x + dx; _pos.y = linestart.y + dy; |