Activate wealth display in scenarios with Rule_BuyAtFlagpole.

Most missions with home base were missing the display.
objectmenu
Sven Eberhardt 2016-01-17 22:28:57 -05:00
parent eb333bd8db
commit 62dd3aafd6
1 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,16 @@
/*-- Buy at flagpole --*/
public func Construction(...)
{
// This rule enables wealth display because it's annoying to not
// know your wealth in multiplayer when many people buy/sell at
// the flagpole)
// Doesn't remove the display on destruction because there's no
// refcounting for this command.
GUI_Controller->ShowWealth();
return _inherited(...);
}
protected func Activate(int iByPlayer)
{
MessageWindow(GetProperty("Description"), iByPlayer);