diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-14 14:24:28 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-14 14:24:28 +0000 |
commit | d283db70abe904fddd8aefbd52b35d6e066dd98f (patch) | |
tree | 7bd24c75dd65872270a4b4a859c38020d82ba451 /src/gui/gui.cpp | |
parent | d7904f7b7e25bbdd7205e5c18e06d184b2078732 (diff) | |
download | mana-d283db70abe904fddd8aefbd52b35d6e066dd98f.tar.gz mana-d283db70abe904fddd8aefbd52b35d6e066dd98f.tar.bz2 mana-d283db70abe904fddd8aefbd52b35d6e066dd98f.tar.xz mana-d283db70abe904fddd8aefbd52b35d6e066dd98f.zip |
Added background to minimap. Only used in Tonori Desert map for now, and its
style is up for discussion.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 73e77073..b6562b77 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -28,6 +28,7 @@ #include "../engine.h" #include "../net/protocol.h" #include "../main.h" +#include "../game.h" // Guichan stuff Gui *gui; @@ -126,6 +127,7 @@ void Gui::mousePress(int mx, int my, int button) if (player_node && player_node->action != DEAD && current_npc == 0 && button == gcn::MouseInput::LEFT) { + Map *tiledMap = engine->getCurrentMap(); int tilex = mx / 32 + camera_x; int tiley = my / 32 + camera_y; @@ -133,7 +135,7 @@ void Gui::mousePress(int mx, int my, int button) walk(tilex, tiley, 0); player_node->setDestination(tilex, tiley); } - - autoTarget = 0; + + autoTarget = NULL; } } |