fix crash in cnc replay viewing with radar
This commit is contained in:
@@ -128,7 +128,7 @@ namespace OpenRA.Mods.RA.Widgets
|
|||||||
public override void Draw()
|
public override void Draw()
|
||||||
{
|
{
|
||||||
if (world == null) return;
|
if (world == null) return;
|
||||||
if( world.LocalPlayer.WinState != WinState.Undefined ) return;
|
if (world.LocalPlayer != null && world.LocalPlayer.WinState != WinState.Undefined) return;
|
||||||
|
|
||||||
var o = new float2(mapRect.Location.X, mapRect.Location.Y + world.Map.Bounds.Height * previewScale * (1 - radarMinimapHeight)/2);
|
var o = new float2(mapRect.Location.X, mapRect.Location.Y + world.Map.Bounds.Height * previewScale * (1 - radarMinimapHeight)/2);
|
||||||
var s = new float2(mapRect.Size.Width, mapRect.Size.Height*radarMinimapHeight);
|
var s = new float2(mapRect.Size.Width, mapRect.Size.Height*radarMinimapHeight);
|
||||||
|
|||||||
Reference in New Issue
Block a user