summaryrefslogtreecommitdiff
path: root/ttd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-09 21:25:44 +0000
committertron <tron@openttd.org>2005-01-09 21:25:44 +0000
commit49584082a08db84344a54ae7e0a7927915261edf (patch)
tree3a16c9375ca0fbd2f06a419b1b0876bf48c7a3e0 /ttd.c
parentc6c86abeeec71db7ae8ef484af6f6e2373528a71 (diff)
downloadopenttd-49584082a08db84344a54ae7e0a7927915261edf.tar.xz
(svn r1451) Fix some of the signed/unsigned comparison warnings
Diffstat (limited to 'ttd.c')
-rw-r--r--ttd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ttd.c b/ttd.c
index 266ca8571..ce245d8d0 100644
--- a/ttd.c
+++ b/ttd.c
@@ -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;