Fixed a bug with fog of war