diff options
author | tron <tron@openttd.org> | 2005-07-19 21:49:35 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-07-19 21:49:35 +0000 |
commit | 7c694f25537097f380d7215082b42eea51e86815 (patch) | |
tree | 02f05ccb111e772991e342a10812e26ae8d1a118 /music_gui.c | |
parent | 4b1c5202640d5c741ebdda3b3775a337a1c36be8 (diff) | |
download | openttd-7c694f25537097f380d7215082b42eea51e86815.tar.xz |
(svn r2643) Get rid of some unnecessary casts
Diffstat (limited to 'music_gui.c')
-rw-r--r-- | music_gui.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/music_gui.c b/music_gui.c index 7f2e93cde..4cf254b43 100644 --- a/music_gui.c +++ b/music_gui.c @@ -197,7 +197,8 @@ static void MusicTrackSelectionWndProc(Window *w, WindowEvent *e) { switch(e->event) { case WE_PAINT: { - int y,i; + uint i; + int y; byte *p; w->disabled_state = (msf.playlist <= 3) ? (1 << 11) : 0; @@ -212,7 +213,7 @@ static void MusicTrackSelectionWndProc(Window *w, WindowEvent *e) SetDParam(0, STR_01D5_ALL + msf.playlist); DrawStringCentered(340, 15, STR_01EF_PROGRAM, 0); - for(i=1; (uint)i <= NUM_SONGS_AVAILABLE; i++) { + for (i = 1; i <= NUM_SONGS_AVAILABLE; i++) { SetDParam(0, i); SetDParam(2, i); SetDParam(1, SPECSTR_SONGNAME); |