summaryrefslogtreecommitdiff
path: root/video/sdl_v.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-11-15 19:49:16 +0000
committerDarkvater <darkvater@openttd.org>2006-11-15 19:49:16 +0000
commitb713974cd885defceace4f786254fe2127158a23 (patch)
tree127efefd7a8dd0e7a066c8ff9994c1375571ca91 /video/sdl_v.c
parentd33605ff21d6f5f324051da628dde746c71b54ed (diff)
downloadopenttd-b713974cd885defceace4f786254fe2127158a23.tar.xz
(svn r7156) -Codechange: Remove obsolete variable, localize global variable, use GB and change logic
of the win32: TAB speeds up, but ALT+TAB doesn't code.
Diffstat (limited to 'video/sdl_v.c')
-rw-r--r--video/sdl_v.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/video/sdl_v.c b/video/sdl_v.c
index b0630b27d..f72d620fe 100644
--- a/video/sdl_v.c
+++ b/video/sdl_v.c
@@ -423,7 +423,6 @@ static void SdlVideoMainLoop(void)
uint32 next_tick = SDL_CALL SDL_GetTicks() + 30;
uint32 cur_ticks;
uint32 pal_tick = 0;
- int i;
uint32 mod;
int numkeys;
Uint8 *keys;
@@ -431,7 +430,7 @@ static void SdlVideoMainLoop(void)
for (;;) {
InteractiveRandom(); // randomness
- while ((i = PollEvent()) == -1) {}
+ while (PollEvent() == -1) {}
if (_exit_game) return;
mod = SDL_CALL SDL_GetModState();