[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netPanzer-CVS] netpanzer/src/NetPanzer/Interfaces GameManager.cpp
From: |
Matthias Braun |
Subject: |
[netPanzer-CVS] netpanzer/src/NetPanzer/Interfaces GameManager.cpp |
Date: |
Sun, 12 Oct 2003 17:02:23 -0400 |
CVSROOT: /cvsroot/netpanzer
Module name: netpanzer
Branch:
Changes by: Matthias Braun <address@hidden> 03/10/12 17:02:22
Modified files:
src/NetPanzer/Interfaces: GameManager.cpp
Log message:
only toggle bot when in game
Patches:
Index: netpanzer/src/NetPanzer/Interfaces/GameManager.cpp
diff -u netpanzer/src/NetPanzer/Interfaces/GameManager.cpp:1.60
netpanzer/src/NetPanzer/Interfaces/GameManager.cpp:1.61
--- netpanzer/src/NetPanzer/Interfaces/GameManager.cpp:1.60 Sun Oct 5
09:50:13 2003
+++ netpanzer/src/NetPanzer/Interfaces/GameManager.cpp Sun Oct 12 17:02:22 2003
@@ -428,15 +428,16 @@
void GameManager::processSystemKeys()
{
static bool toggleBot = false;
- if (KeyboardInterface::getKeyPressed(SDLK_b)) {
- toggleBot = !toggleBot;
- LOGGER.info("Bot enable=%d", toggleBot ? 1 : 0);
- }
- if (toggleBot) {
- Bot::bot()->processEvents();
- }
if (Desktop::getVisible("GameView")) {
+
+ if (KeyboardInterface::getKeyPressed(SDLK_b)) {
+ toggleBot = !toggleBot;
+ LOGGER.info("Bot enable=%d", toggleBot ? 1 : 0);
+ }
+ if (toggleBot) {
+ Bot::bot()->processEvents();
+ }
if (KeyboardInterface::getKeyPressed( SDLK_F5 )) {
// DEBUG VIEW
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [netPanzer-CVS] netpanzer/src/NetPanzer/Interfaces GameManager.cpp,
Matthias Braun <=