diff options
Diffstat (limited to 'map.h')
| -rw-r--r-- | map.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -6,6 +6,11 @@ #include "path.h" #include "priority_queue.h" +/* Prints a message at the line right below the map. Multiline messages are undefined behaviour */ +#define message(height, ...) { \ + if (move((height) + map_offset_y + 1, map_offset_x - 2) != ERR) { clrtoeol(); /* Clear the line */\ + mvprintw((height) + map_offset_y + 1, map_offset_x - 2, __VA_ARGS__); }} + extern int map_offset_x; extern int map_offset_y; |
