diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game.cpp | 4 | ||||
-rw-r--r-- | src/graphic/graphic.cpp | 2 | ||||
-rw-r--r-- | src/log.cpp | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/game.cpp b/src/game.cpp index 4eb3090f..0960190e 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -228,11 +228,13 @@ void do_input() { } } + rect(screen, (mouse_x/32)*32,(mouse_y/32)*32, ((mouse_x/32)+1)*32, ((mouse_y/32)+1)*32, makecol(255,255,255)); + if(mouse_b&2) { if(!show_npc_dialog) { int npc_x = mouse_x/32+map_x/32; int npc_y = mouse_y/32+map_y/32; - int id = find_npc(npc_x+1, npc_y+1); + int id = find_npc(npc_x, npc_y); if(id!=0) { WFIFOW(0) = net_w_value(0x0090); WFIFOL(2) = net_l_value(id); diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp index c104b0d2..9009183e 100644 --- a/src/graphic/graphic.cpp +++ b/src/graphic/graphic.cpp @@ -48,7 +48,7 @@ DIALOG_PLAYER *chat_player, *npc_player, *skill_player; char speech[255] = ""; char npc_text[1000] = ""; TmwInventory inventory; -Chat chatlog("chatlog.txt", 20); +Chat chatlog("./docs/chatlog.txt", 20); int show_npc_dialog = 0; bool show_skill_dialog = false; diff --git a/src/log.cpp b/src/log.cpp index 785418cc..641e87ef 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -25,7 +25,7 @@ int warning_n; // Keep warning number -#define LOG_FILE "The Mana World.log" +#define LOG_FILE "./docs/tmw.log" #define LOG_VERSION "0.3" void init_log() { |