Prevent shroud from being revealed outside the map cordon.
Fixes #8947.
This commit is contained in:
@@ -193,7 +193,7 @@ namespace OpenRA.Traits
|
|||||||
foreach (var puv in cells)
|
foreach (var puv in cells)
|
||||||
{
|
{
|
||||||
var uv = (MPos)puv;
|
var uv = (MPos)puv;
|
||||||
if (!explored[uv])
|
if (map.Contains(puv) && !explored[uv])
|
||||||
{
|
{
|
||||||
explored[uv] = true;
|
explored[uv] = true;
|
||||||
changed.Add(puv);
|
changed.Add(puv);
|
||||||
|
|||||||
Reference in New Issue
Block a user