From 7429ba62b4e815a44864b92e13d125e872209ed6 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Thu, 5 Jan 2006 21:22:16 +0000 Subject: Remove some useless code. --- src/game.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 72dbb0c9..ee254d13 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -51,7 +51,6 @@ #include "gui/chat.h" #include "gui/confirm_dialog.h" #include "gui/equipmentwindow.h" -#include "gui/gui.h" #include "gui/help.h" #include "gui/inventorywindow.h" #include "gui/minimap.h" @@ -76,6 +75,7 @@ #include "resources/imagewriter.h" extern Graphics *graphics; +extern gcn::SDLInput *guiInput; std::string map_path; std::string tradePartnerName; @@ -86,7 +86,6 @@ volatile int tick_time; volatile bool action_time = false; int server_tick; int fps = 0, frame = 0, current_npc = 0; -bool displayPathToMouse = false; Uint16 startX = 0, startY = 0; Being *autoTarget = NULL; Engine *engine = NULL; @@ -250,9 +249,6 @@ void createGuiWindows() //buddyWindow->setVisible(false); helpWindow->setVisible(false); debugWindow->setVisible(false); - - // Do not focus any text field - gui->focusNone(); } /** @@ -374,7 +370,6 @@ void game() { do_input(); engine->logic(); - gui->logic(); gameTime++; } @@ -625,7 +620,7 @@ void do_input() case SDLK_f: // Find path to mouse (debug purpose) - displayPathToMouse = !displayPathToMouse; + engine->toggleDebugPath(); used = true; break; } @@ -821,7 +816,7 @@ void do_parse() Being *being; // We need at least 2 bytes to identify a packet - while (in_size >= 2) + while (packetReady()) { MessageIn msg = get_next_message(); -- cgit v1.2.3-70-g09d2