Skip to content

Commit

Permalink
A message is now shown when the player's age has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrettin committed Jan 10, 2019
1 parent 1d2b700 commit 398645a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/stratagus/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1720,6 +1720,10 @@ void CPlayer::SetAge(CAge *age)
if (this->Age) {
UI.AgePanel.Text = this->Age->Name;
UI.AgePanel.G = this->Age->G;

if (GameCycle > 0 && !SaveGameLoading) {
this->Notify(_("The %s has dawned upon us."), this->Age->Name.c_str());
}
} else {
UI.AgePanel.Text.clear();
UI.AgePanel.G = nullptr;
Expand Down

0 comments on commit 398645a

Please sign in to comment.