summaryrefslogtreecommitdiff
path: root/misc.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 /misc.c
parentc6c86abeeec71db7ae8ef484af6f6e2373528a71 (diff)
downloadopenttd-49584082a08db84344a54ae7e0a7927915261edf.tar.xz
(svn r1451) Fix some of the signed/unsigned comparison warnings
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/misc.c b/misc.c
index f439bad8b..8e779bcb2 100644
--- a/misc.c
+++ b/misc.c
@@ -184,7 +184,7 @@ void ConvertGroundTilesIntoWaterTiles();
void InitializeGame()
{
// Initialize the autoreplace array. Needs to be cleared between each game
- int i;
+ uint i;
for (i = 0; i < lengthof(_autoreplace_array); i++)
_autoreplace_array[i] = i;
@@ -608,7 +608,9 @@ static const uint16 _autosave_months[] = {
void IncreaseDate()
{
const int vehicles_per_day = (1 << (sizeof(_date_fract) * 8)) / 885;
- int i,ctr,t;
+ uint i;
+ VehicleID ctr;
+ int t;
YearMonthDay ymd;
if (_game_mode == GM_MENU) {