Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions GoRogue/GameFramework/Map.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ private Map(ISettableGridView<IGameObject?> terrainLayer, Distance distanceMeasu

if (useCachedGridViews)
{

_cachedTransparencyView = new BitArrayView(_terrain.Width, _terrain.Height);
TransparencyView = _cachedTransparencyView;
_cachedWalkabilityView = new BitArrayView(_terrain.Width, _terrain.Height);
Expand Down Expand Up @@ -363,7 +362,7 @@ private void Map_ObjectRemovedSyncViews(object? sender, ItemEventArgs<IGameObjec
private void Item_TransparencyChangedSyncView(object? sender, ValueChangedEventArgs<bool> e)
{
var obj = (IGameObject)sender!;
if (e.NewValue)
if (e.NewValue != e.OldValue)
_cachedTransparencyView![obj.Position] = LayersBlockingTransparency == 1
? _terrain[obj.Position]?.IsTransparent ?? true
: FullIsTransparent(obj.Position);
Expand Down
Loading