crate lifetime fix; minimap crash fixed
This commit is contained in:
@@ -127,7 +127,7 @@ namespace OpenRa.Graphics
|
|||||||
var colors = terrainTypeColors[world.Map.Theater.ToLowerInvariant()];
|
var colors = terrainTypeColors[world.Map.Theater.ToLowerInvariant()];
|
||||||
int* c = (int*)bitmapData.Scan0;
|
int* c = (int*)bitmapData.Scan0;
|
||||||
|
|
||||||
foreach (var a in world.Queries.WithTrait<Unit>())
|
foreach (var a in world.Queries.WithTrait<Unit>().Where( a => a.Actor.Owner != null ))
|
||||||
*(c + (a.Actor.Location.Y * bitmapData.Stride >> 2) + a.Actor.Location.X) =
|
*(c + (a.Actor.Location.Y * bitmapData.Stride >> 2) + a.Actor.Location.X) =
|
||||||
Color.FromArgb(alpha, a.Actor.Owner.Color).ToArgb();
|
Color.FromArgb(alpha, a.Actor.Owner.Color).ToArgb();
|
||||||
|
|
||||||
|
|||||||
@@ -547,7 +547,7 @@ DOME:
|
|||||||
|
|
||||||
CRATE:
|
CRATE:
|
||||||
Crate:
|
Crate:
|
||||||
Lifetime: 5
|
Lifetime: 120
|
||||||
SpeedUpgradeCrateAction:
|
SpeedUpgradeCrateAction:
|
||||||
Multiplier: 1.7
|
Multiplier: 1.7
|
||||||
SelectionShares: 10
|
SelectionShares: 10
|
||||||
|
|||||||
Reference in New Issue
Block a user