summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-05 03:41:13 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-05 03:41:13 +0300
commitd0571ca16bb4ef11a718cfa78dc29b57080fcc72 (patch)
treeadd362fa6b01bb83c608a78b3a56bf8b52136767 /src/game.cpp
parent0202b0b4cdac57a04a3765f6bca893bd3b5c9812 (diff)
downloadmanaverse-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.tar.gz
manaverse-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.tar.bz2
manaverse-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.tar.xz
manaverse-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.cpp6
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);
}