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/engine.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/engine.cpp') diff --git a/src/engine.cpp b/src/engine.cpp index 9f5106bd..2fa3257e 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -60,6 +60,7 @@ Spriteset *weaponset; Engine::Engine(): + mShowDebugPath(false), mCurrentMap(NULL) { // Load the sprite sets @@ -177,6 +178,8 @@ void Engine::logic() beingIterator++; } } + + gui->logic(); } void Engine::draw(Graphics *graphics) @@ -215,7 +218,7 @@ void Engine::draw(Graphics *graphics) // Find a path from the player to the mouse, and draw it. This is for debug // purposes. - if (displayPathToMouse && mCurrentMap != NULL) + if (mShowDebugPath && mCurrentMap != NULL) { // Get the current mouse position int mouseX, mouseY; -- cgit v1.2.3-60-g2f50