home · contact · privacy
7DRL: Make "Things here" window scrollable.
[plomrogue] / src / client / draw_wins.c
index 68c4ed866086c84ef3c1ced4d161a6fd629b7da2..c8d87fc29c622eaa5719c17f754f4a666a7d7711 100644 (file)
@@ -461,7 +461,7 @@ extern void draw_win_map(struct Win * win)
                 { //
                     a = COLOR_PAIR(12); //
                 } //
-                else if ('%' == c) //
+                else if ('%' == c || '*' == c) //
                 { //
                     a = COLOR_PAIR(13); //
                 } //
@@ -546,6 +546,7 @@ extern void draw_win_terrain_stack(struct Win * win)
     char * wait_response = "(polling)";
     char * text = world.things_here ? world.things_here : wait_response;
     add_text_with_linebreaks(win, text);
+    win->center.y = world.things_here_scroll + (win->frame_size.y / 2);  //
 }