TONY: Silence some gcc warnings

This commit is contained in:
Matthew Hoops 2012-06-09 17:31:18 -04:00
parent 4a3518dc92
commit 060449042a

View File

@ -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;