Bugfix: "Unit production requires a right-click before another unit can be produced."
This commit is contained in:
@@ -61,6 +61,11 @@ namespace OpenRa.Game
|
||||
var item = production[ category ];
|
||||
if( item == null ) return;
|
||||
GiveCash( item.TotalCost - item.RemainingCost ); // refund what's been paid so far.
|
||||
FinishProduction( category );
|
||||
}
|
||||
|
||||
public void FinishProduction( string category )
|
||||
{
|
||||
production[ category ] = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user