add enum-attrs to pronoun_type

develop
Ben Lubar 2020-06-29 21:30:22 -05:00
parent d13e5a3f31
commit 9def098ef9
No known key found for this signature in database
GPG Key ID: 92939677AB59EDA4
3 changed files with 5 additions and 3 deletions

@ -1 +1 @@
Subproject commit b11433eea0a1117edc2a4a51f7a30b01594cb52b
Subproject commit b67b3fa4b02f834dc76a2e1eae21136e0be089f7

@ -2032,7 +2032,9 @@ void viewscreen_unitlaborsst::render()
int x = 1, y = 3 + num_rows + 2;
Screen::Pen white_pen(' ', 15, 0);
Screen::paintString(white_pen, x, y, (cur->unit && cur->unit->sex) ? "\x0b" : "\x0c");
auto symbol = cur->unit ? ENUM_ATTR(pronoun_type, symbol, cur->unit->sex) : nullptr;
if (symbol)
Screen::paintString(white_pen, x, y, symbol);
x += 2;
Screen::paintString(white_pen, x, y, cur->transname);
x += cur->transname.length();

@ -1 +1 @@
Subproject commit 91060d6d2c79196f6b332b9b88492eb0e7ef32da
Subproject commit 3987d031469420d64aff23097d9548676f1ab752