disallow building placement when the game is paused

touches the most glitchy case of #3277
This commit is contained in:
Matthias Mailänder
2014-07-06 09:39:16 +02:00
parent 565ea05bd7
commit cde7ec1948

View File

@@ -54,6 +54,9 @@ namespace OpenRA.Mods.RA.Orders
IEnumerable<Order> InnerOrder(World world, CPos xy, MouseInput mi)
{
if (world.Paused == World.PauseState.Paused)
yield break;
if (mi.Button == MouseButton.Left)
{
var topLeft = xy - FootprintUtils.AdjustForBuildingSize(BuildingInfo);