diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-07-05 03:41:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-07-05 03:41:13 +0300 |
commit | d0571ca16bb4ef11a718cfa78dc29b57080fcc72 (patch) | |
tree | add362fa6b01bb83c608a78b3a56bf8b52136767 /src/game.cpp | |
parent | 0202b0b4cdac57a04a3765f6bca893bd3b5c9812 (diff) | |
download | plus-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.tar.gz plus-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.tar.bz2 plus-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.tar.xz plus-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.zip |
Add ability to send client states to other clients.
Using for this emotes.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 2d204499d..21f03d42c 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1084,13 +1084,19 @@ void Game::handleInput() { // window restore Client::setIsMinimized(false); if (player_node && !player_node->getAwayMode()) + { fpsLimit = config.getIntValue("fpslimit"); + player_node->setHalfAway(false); + } } else { // window minimisation Client::setIsMinimized(true); if (player_node && !player_node->getAwayMode()) + { fpsLimit = config.getIntValue("altfpslimit"); + player_node->setHalfAway(true); + } } Client::setFramerate(fpsLimit); } |