Fix world visibility checks when shroud is disabled.

This commit is contained in:
Paul Chote
2013-08-08 13:04:01 +12:00
parent 8271e5ed63
commit 8fcbe7bb9e
2 changed files with 5 additions and 2 deletions

View File

@@ -84,6 +84,7 @@ namespace OpenRA.Traits
case "DevShroudDisable":
{
DisableShroud ^= true;
self.Owner.Shroud.Disabled = DisableShroud;
if (self.World.LocalPlayer == self.Owner)
self.World.RenderPlayer = DisableShroud ? null : self.Owner;
break;