diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-10-18 10:56:40 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-10-18 10:56:40 +0000 |
commit | 8e0634da5736489ce5da5ab2ba9802c6c11e73cf (patch) | |
tree | a295338f18915022322664b46c22377093a3cbf3 /src/game.cpp | |
parent | d7bf8a4b11a88d2fc49fbe996c22ca5512d25e75 (diff) | |
download | mana-8e0634da5736489ce5da5ab2ba9802c6c11e73cf.tar.gz mana-8e0634da5736489ce5da5ab2ba9802c6c11e73cf.tar.bz2 mana-8e0634da5736489ce5da5ab2ba9802c6c11e73cf.tar.xz mana-8e0634da5736489ce5da5ab2ba9802c6c11e73cf.zip |
Implemented automatic denying of trade requests based on a patch
submitted by Quiche_on_a_leash.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index ca6f4993..e8feb3ea 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -614,6 +614,17 @@ void Game::handleInput() viewport->toggleDebugPath(); used = true; break; + + case SDLK_t: + // Toggle accepting of incoming trade requests + { + TradeHandler *th = static_cast<TradeHandler*>( + mTradeHandler.get()); + th->setAcceptTradeRequests( + !th->acceptTradeRequests()); + } + used = true; + break; } // Emotions |