forked from Mirrors/openclonk
Activate wealth display in scenarios with Rule_BuyAtFlagpole.
Most missions with home base were missing the display.objectmenu
parent
eb333bd8db
commit
62dd3aafd6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue