scope "event"

This commit is contained in:
Glenn Maynard
2002-12-15 20:19:38 +00:00
parent d5dd8aedca
commit e02d41d167
+1 -1
View File
@@ -517,10 +517,10 @@ static void HandleInputEvents(float fDeltaTime)
void GameLoop() void GameLoop()
{ {
bool do_exit = false; bool do_exit = false;
SDL_Event event;
while(!do_exit) while(!do_exit)
{ {
// process all queued events // process all queued events
SDL_Event event;
while(SDL_PollEvent(&event)) while(SDL_PollEvent(&event))
{ {
switch(event.type) switch(event.type)