From ad3623ced5020c9c886cb85100ae05efa460f84a Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sat, 30 Apr 2005 13:29:45 +0000 Subject: Some fixes to player control, also attempting to solve long walk path problem. --- src/gui/gui.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui/gui.cpp') diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index d9ab90bd..5ef31a78 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -101,9 +101,11 @@ void Gui::draw() void Gui::mousePress(int mx, int my, int button) { // Mouse pressed on window container (basically, the map) - // Experimental mouse walk support - if (button == gcn::MouseInput::LEFT) { + // When conditions for walking are met, set new player destination + if (player_node->action != DEAD && current_npc == 0 && + button == gcn::MouseInput::LEFT) + { int tilex = mx / 32 + camera_x; int tiley = my / 32 + camera_y; -- cgit v1.2.3-60-g2f50