forked from github/server
show region id in mapper
This commit is contained in:
parent
0326ffe7fe
commit
b973330061
1 changed files with 3 additions and 1 deletions
|
@ -333,9 +333,11 @@ paint_status(window * wnd, const state * st)
|
||||||
{
|
{
|
||||||
WINDOW * win = wnd->handle;
|
WINDOW * win = wnd->handle;
|
||||||
const char * name = "";
|
const char * name = "";
|
||||||
|
int uid = 0;
|
||||||
const char * terrain = "----";
|
const char * terrain = "----";
|
||||||
map_region * mr = cursor_region(&st->display, &st->cursor);
|
map_region * mr = cursor_region(&st->display, &st->cursor);
|
||||||
if (mr && mr->r) {
|
if (mr && mr->r) {
|
||||||
|
uid = mr->r->uid;
|
||||||
if (mr->r->land) {
|
if (mr->r->land) {
|
||||||
name = (const char *)mr->r->land->name;
|
name = (const char *)mr->r->land->name;
|
||||||
} else {
|
} else {
|
||||||
|
@ -343,7 +345,7 @@ paint_status(window * wnd, const state * st)
|
||||||
}
|
}
|
||||||
terrain = mr->r->terrain->_name;
|
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);
|
wclrtoeol(win);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue