diff options
author | Stijn Buys <ingar@osirion.org> | 2010-09-27 20:03:50 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-09-27 20:03:50 +0000 |
commit | 178f0e4a83918df416ac8274b0e845b390772d76 (patch) | |
tree | ee3d4bf0a29cfcd32530e2c38353668a42ce509d /src/core/gameinterface.cc | |
parent | a80e501a0a8006034a7dc0cda1fc047f6c37fbd9 (diff) |
documentation updates, initial chat window playerlist, trade menu ESC key
Diffstat (limited to 'src/core/gameinterface.cc')
-rw-r--r-- | src/core/gameinterface.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/gameinterface.cc b/src/core/gameinterface.cc index 5caa270..23018d3 100644 --- a/src/core/gameinterface.cc +++ b/src/core/gameinterface.cc @@ -122,6 +122,7 @@ void GameInterface::clear() } } game_players.clear(); + game_playerlist_timestamp = 0; // remove all game functions for (Func::Registry::iterator it = Func::registry().begin(); it != Func::registry().end();) { @@ -193,4 +194,9 @@ void GameInterface::list_players() con_print << count << " connected " << aux::plural("player", count) << std::endl; } +void GameInterface::set_playerlist_timestamp(const unsigned long timestamp) +{ + game_playerlist_timestamp = ( timestamp > 0 ? timestamp : 1); +} + } |