projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
No more segfaults when trying to spawn bullets of unknown type
[supertux.git]
/
src
/
mainloop.cpp
diff --git
a/src/mainloop.cpp
b/src/mainloop.cpp
index
978d6bf
..
6a9bb04
100644
(file)
--- a/
src/mainloop.cpp
+++ b/
src/mainloop.cpp
@@
-201,6
+201,10
@@
MainLoop::process_events()
break;
case SDL_KEYDOWN:
break;
case SDL_KEYDOWN:
+ if (event.key.keysym.sym == SDLK_F10)
+ {
+ config->show_fps = !config->show_fps;
+ }
if (event.key.keysym.sym == SDLK_F11)
{
config->use_fullscreen = !config->use_fullscreen;
if (event.key.keysym.sym == SDLK_F11)
{
config->use_fullscreen = !config->use_fullscreen;