diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-11-07 15:44:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-11-07 15:45:50 +0300 |
commit | 2541754f6c607acfd1304af38280b534f7a8e0d7 (patch) | |
tree | cf30b8ca962e550003f0ff46fb131ad08e782f14 /src/game.cpp | |
parent | d812d9fac7bae4eff66a5ce8275be19d0ca77a32 (diff) | |
download | manaplus-2541754f6c607acfd1304af38280b534f7a8e0d7.tar.gz manaplus-2541754f6c607acfd1304af38280b534f7a8e0d7.tar.bz2 manaplus-2541754f6c607acfd1304af38280b534f7a8e0d7.tar.xz manaplus-2541754f6c607acfd1304af38280b534f7a8e0d7.zip |
Fix termination on Android by using "home" key.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 3cf000229..df23a0146 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -871,12 +871,16 @@ void Game::handleActive(const SDL_Event &event) } else { // window minimisation +#ifdef ANDROID + Client::setState(STATE_EXIT); +#else Client::setIsMinimized(true); if (player_node && !player_node->getAway()) { fpsLimit = config.getIntValue("altfpslimit"); player_node->setHalfAway(true); } +#endif } if (player_node) player_node->updateStatus(); |