X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=blobdiff_plain;f=src%2Fui%2Fui.cpp;h=746be3e5295e1fc71fb7e5bbc82217405936964c;hp=05fd499f376a333dc0b8d0e477fef48bfd9a4ca1;hb=7159e493b63552ec7de1fceec4abcb7e0e099ec0;hpb=e6a15aa6012cf8f034f3073c3d042f9a714da011 diff --git a/src/ui/ui.cpp b/src/ui/ui.cpp index 05fd499..746be3e 100644 --- a/src/ui/ui.cpp +++ b/src/ui/ui.cpp @@ -223,7 +223,11 @@ void CreaturePanel::Hide() noexcept { void CreaturePanel::Draw(graphics::Viewport &viewport) noexcept { if (!c) return; - name->Text(c->Name()); + std::string name_str(c->Name()); + if (c->Dead()) { + name_str += " (deceased)"; + } + name->Text(name_str); age->Text(TimeString(c->Age())); mass->Text(MassString(c->Mass())); size->Text(LengthString(c->Size()));