Only save history when the key is pressed (and not again when it is released).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10203 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
7f086ded7a
commit
09d998bc24
@ -235,7 +235,7 @@ void InputManager::handleStaticAction(int key, int value)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case KEY_F10:
|
case KEY_F10:
|
||||||
if(world) history->Save();
|
if(world && value) history->Save();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case KEY_F11:
|
case KEY_F11:
|
||||||
|
Loading…
Reference in New Issue
Block a user