summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-01-30 14:44:58 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-01-30 14:44:58 -0500
commitb9fe1b45127085d8a7c664245dd070afd8cbf3b4 (patch)
tree7d2752132d8e634ef89b6c992da68eba932c5763 /src
parent8a38699f399103d4ee003e6eb63dd62656115be2 (diff)
downloadtanetane-b9fe1b45127085d8a7c664245dd070afd8cbf3b4.tar.gz
tanetane-b9fe1b45127085d8a7c664245dd070afd8cbf3b4.tar.bz2
tanetane-b9fe1b45127085d8a7c664245dd070afd8cbf3b4.zip
ESC quits the game now
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 83f63e0..9d889f2 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -31,7 +31,7 @@ void loop(Renderer& renderer) {
31 31
32 SDL_Event e; 32 SDL_Event e;
33 while (SDL_PollEvent(&e)) { 33 while (SDL_PollEvent(&e)) {
34 if (e.type == SDL_QUIT) { 34 if (e.type == SDL_QUIT || (e.type == SDL_KEYDOWN && e.key.keysym.sym == SDLK_ESCAPE)) {
35 return; 35 return;
36 } 36 }
37 } 37 }