(svn r1451) Fix some of the signed/unsigned comparison warnings

This commit is contained in:
tron
2005-01-09 21:25:44 +00:00
parent d2e02df881
commit 4450ff105c
20 changed files with 39 additions and 33 deletions

4
ttd.c
View File

@@ -267,7 +267,7 @@ void LoadDriver(int driver, const char *name)
ttd_strlcpy(buffer, name, sizeof(buffer));
parm = strchr(buffer, ':');
if (parm) {
int np = 0;
uint np = 0;
// Tokenize the parm.
do {
*parm++ = 0;
@@ -1243,7 +1243,7 @@ void UpdateCurrencies()
// even though they should have. This is fixed by this function
void UpdateVoidTiles()
{
int i;
uint i;
// create void tiles on the border
for (i = 0; i != MapMaxY(); i++)
_map_type_and_height[ i * MapSizeX() + MapMaxY() ] = MP_VOID << 4;