Skip to content

Commit

Permalink
NWN: Only display game version if we could actually detect it
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Jun 30, 2018
1 parent 124425f commit 157339a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/engines/nwn/gui/main/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ OptionsMenu::~OptionsMenu() {

void OptionsMenu::initWidget(Widget &widget) {
if (widget.getTag() == "BuildNumber") {
Common::UString version = Common::UString(::Version::getProjectNameVersion()) +
" v" + _gameVersion->getVersionString();
Common::UString version = Common::UString(::Version::getProjectNameVersion());

if (_gameVersion->hasVersion())
version += " v" + _gameVersion->getVersionString();

dynamic_cast<WidgetLabel &>(widget).setText(version);
dynamic_cast<WidgetLabel &>(widget).setColor(0.6f, 0.6f, 0.6f, 1.0f);
Expand Down

0 comments on commit 157339a

Please sign in to comment.