diff options
author | KUDr <KUDr@openttd.org> | 2006-06-11 21:19:51 +0000 |
---|---|---|
committer | KUDr <KUDr@openttd.org> | 2006-06-11 21:19:51 +0000 |
commit | b84494d7f0c81e27b88dcf52c51441eebd7f27f9 (patch) | |
tree | 4e635675bd4545c2485887d3b6c41a6a6d8ab307 /ai | |
parent | 946edd236d82cfea42cc12d0b153f610537160cd (diff) | |
download | openttd-b84494d7f0c81e27b88dcf52c51441eebd7f27f9.tar.xz |
(svn r5228) Suppress MSVC warnings about signed/unsigned comparison
Diffstat (limited to 'ai')
-rw-r--r-- | ai/default/default.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ai/default/default.c b/ai/default/default.c index 1b814231f..7d2fe5cab 100644 --- a/ai/default/default.c +++ b/ai/default/default.c @@ -484,7 +484,7 @@ static void AiFindSubsidyIndustryRoute(FoundRoute *fr) if (cargo == CT_GOODS || cargo == CT_FOOD) { Town* to_tow = GetTown(s->to); - if (to_tow->population < (cargo == CT_FOOD ? 200 : 900)) return; // error + if (to_tow->population < (cargo == CT_FOOD ? 200U : 900U)) return; // error fr->to = to_tow; to_xy = to_tow->xy; } else { @@ -567,7 +567,7 @@ static void AiFindRandomIndustryRoute(FoundRoute *fr) // pick a dest town, and see if it's big enough Town* t = AiFindRandomTown(); - if (t == NULL || t->population < (cargo == CT_FOOD ? 200 : 900)) return; + if (t == NULL || t->population < (cargo == CT_FOOD ? 200U : 900U)) return; fr->to = t; fr->distance = DistanceManhattan(i->xy, t->xy); |