(svn r1449) -Fix: signed/unsigned error on windows

-Change: Makefile added -Wsign-compare flag
This commit is contained in:
darkvater
2005-01-09 18:59:16 +00:00
parent 97479f9613
commit fbcc84bdcf
2 changed files with 2 additions and 2 deletions

2
map.c
View File

@@ -29,7 +29,7 @@ TileIndex TileAdd(TileIndex tile, TileIndexDiff add,
uint y;
dx = add & MapMaxX();
if (dx >= MapSizeX() / 2) dx -= MapSizeX();
if (dx >= (int)MapSizeX() / 2) dx -= MapSizeX();
dy = (add - dx) / (int)MapSizeX();
x = TileX(tile) + dx;