(svn r19816) -Codechange: use static const uint for the unnamed 'tile consts' enum as well

This commit is contained in:
rubidium
2010-05-13 11:19:30 +00:00
parent 28d25cadfc
commit 548dd91ef0
6 changed files with 31 additions and 33 deletions

View File

@@ -1304,7 +1304,7 @@ public:
sx = -hv.x;
sub = 0;
}
if (sx > (int)MapMaxX() * TILE_SIZE - hv.x) {
if (sx > (int)(MapMaxX() * TILE_SIZE) - hv.x) {
sx = MapMaxX() * TILE_SIZE - hv.x;
sub = 0;
}
@@ -1312,7 +1312,7 @@ public:
sy = -hv.y;
sub = 0;
}
if (sy > (int)MapMaxY() * TILE_SIZE - hv.y) {
if (sy > (int)(MapMaxY() * TILE_SIZE) - hv.y) {
sy = MapMaxY() * TILE_SIZE - hv.y;
sub = 0;
}