diff ttd.c @ 959:ca7c19a004cc draft

(svn r1451) Fix some of the signed/unsigned comparison warnings
author tron <tron@openttd.org>
date Sun, 09 Jan 2005 21:25:44 +0000
parents 4731f23c9b89
children 8ca2991f893e
line wrap: on
line diff
--- a/ttd.c
+++ b/ttd.c
@@ -267,7 +267,7 @@
 		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 @@
 // 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;