Improved mission information at panel

This commit is contained in:
VladMordock
2021-02-17 13:10:38 +01:00
parent 3b45fb05ff
commit 6edc2320cc
3 changed files with 75 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
// This class gathers all global variable
// Class to hold current game state/mission information
class CurrentMissionClass
{
@@ -10,7 +11,13 @@ class CurrentMissionClass
public string ToInfoString()
{
return this.Mission + " (" + this.Theatre + ") Pause:" + this.Pause;
if (this.Mission != "")
{
return "Mission: " + this.Mission + "(" + this.Theatre + ") Pause:" + this.Pause;
} else
{
return "Mission: Unknown";
}
}
}