New shroud renderer. Fixes #2162. Fixes #3024. Fixes #4034.

Uses the original tile sprites in C&C and D2K and uses a smoother transition in all mods.
This commit is contained in:
Paul Chote
2013-12-10 19:28:45 +13:00
parent 4e814a8c2e
commit 4d70996012
15 changed files with 325 additions and 183 deletions

View File

@@ -263,9 +263,7 @@ namespace OpenRA.Traits
public bool IsVisible(CPos xy) { return IsVisible(xy.X, xy.Y); }
public bool IsVisible(int x, int y)
{
// Visibility is allowed to extend beyond the map cordon so that
// the fog tiles are not visible at the edge of the world
if (x < 0 || x >= map.MapSize.X || y < 0 || y >= map.MapSize.Y)
if (!map.IsInMap(x, y))
return false;
if (Disabled || !self.World.LobbyInfo.GlobalSettings.Fog)