From b973330061730c79cab79108d1f1cb3f3417d65d Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 2 Jun 2008 11:12:22 +0000 Subject: [PATCH] show region id in mapper --- src/eressea/gmtool.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/eressea/gmtool.c b/src/eressea/gmtool.c index a2741175a..39c61b5ec 100644 --- a/src/eressea/gmtool.c +++ b/src/eressea/gmtool.c @@ -333,9 +333,11 @@ paint_status(window * wnd, const state * st) { WINDOW * win = wnd->handle; const char * name = ""; + int uid = 0; const char * terrain = "----"; map_region * mr = cursor_region(&st->display, &st->cursor); if (mr && mr->r) { + uid = mr->r->uid; if (mr->r->land) { name = (const char *)mr->r->land->name; } else { @@ -343,7 +345,7 @@ paint_status(window * wnd, const state * st) } terrain = mr->r->terrain->_name; } - mvwprintw(win, 0, 0, "%4d %4d | %.4s | %.20s", st->cursor.x, st->cursor.y, terrain, name); + mvwprintw(win, 0, 0, "%4d %4d | %.4s | %.20s (%d)", st->cursor.x, st->cursor.y, terrain, name, uid); wclrtoeol(win); }