(svn r1338) -Fix: fix signed/unsigned warnings introduced when ditching the macros for map querying.

This commit is contained in:
darkvater
2005-01-03 14:07:49 +00:00
parent 181e9b6cf9
commit 920b9eab9d
4 changed files with 9 additions and 9 deletions

View File

@@ -1212,8 +1212,8 @@ static CheckNewIndustryProc * const _check_new_industry_procs[] = {
static bool CheckSuitableIndustryPos(uint tile)
{
int x = GET_TILE_X(tile);
int y = GET_TILE_Y(tile);
uint x = GET_TILE_X(tile);
uint y = GET_TILE_Y(tile);
if ( x < 2 || y < 2 || x > MapMaxX() - 3 || y > MapMaxY() - 3) {
_error_message = STR_0239_SITE_UNSUITABLE;