From f381620a6bdbc956cbfdd7f7e29f6539f6ce58c9 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Tue, 5 Apr 2005 19:07:40 +0000 Subject: Don't command the server to walk the character to an occupied tile, for example where a shopkeeper is standing. --- src/gui/gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 943584ce..c79d0833 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -103,7 +103,7 @@ void Gui::mousePress(int mx, int my, int button) int tiley = my / 32 + camera_y; // Experimental mouse walk support - if (state == GAME) { + if (state == GAME && tiledMap->getWalk(tilex, tiley)) { walk(tilex, tiley, 0); player_node->setPath(tiledMap->findPath( player_node->x, player_node->y, -- cgit v1.2.3-70-g09d2