Store rect descriptions together with their rectangle and remove now-unused string-length members

This commit is contained in:
2015-01-22 15:19:26 -05:00
parent 3e0e3d3b8a
commit 952d81ae5a
18 changed files with 58 additions and 112 deletions

View File

@@ -667,7 +667,7 @@ void draw_text_bar() {
if(is_out()) {
for(i = 0; i < 8; i++)
if(loc.in(univ.out->info_rect[i])) {
put_text_bar(univ.out->rect_names[i]);
put_text_bar(univ.out->info_rect[i].descr);
in_area = true;
}
if(!in_area) {
@@ -676,8 +676,8 @@ void draw_text_bar() {
}
if(is_town()) {
for(i = 0; i < 16; i++)
if(loc.in(univ.town->room_rect(i))) {
put_text_bar(univ.town->rect_names[i]);
if(loc.in(univ.town->room_rect[i])) {
put_text_bar(univ.town->room_rect[i].descr);
in_area = true;
}
if(!in_area) {