From d0571ca16bb4ef11a718cfa78dc29b57080fcc72 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 5 Jul 2011 03:41:13 +0300 Subject: Add ability to send client states to other clients. Using for this emotes. --- src/game.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/game.cpp') 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); } -- cgit v1.2.3-60-g2f50