diff options
Diffstat (limited to 'commands')
-rw-r--r-- | commands/commands.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/commands.cpp b/commands/commands.cpp index cdaf30b..1e9fb71 100644 --- a/commands/commands.cpp +++ b/commands/commands.cpp @@ -24,10 +24,10 @@ bool Commands_sdl::process_events () { SDL_GetMouseState(&mx, &my);
resx = -1; resy = -1;
-
+
SDL_Event e;
while(SDL_PollEvent(&e) != 0) {
- if(e.type == SDL_QUIT) {
+ if(e.type == SDL_QUIT) {
return true;
}
if(e.type == SDL_KEYDOWN && e.key.repeat == 0) {
@@ -67,4 +67,4 @@ void Commands_sdl::process_clicks () { void Commands_sdl::process_keys () {
keys.clear();
-}
\ No newline at end of file +}
|