Skip to content

Commit

Permalink
fix: attached effect erasing when teleporting
Browse files Browse the repository at this point in the history
  • Loading branch information
conde2 committed Nov 15, 2023
1 parent 3dfb62f commit a98fbdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/tile.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class Tile : public AttachableObject
bool isSingleDimension() { return (m_thingTypeFlag & TileThingType::NOT_SINGLE_DIMENSION) == 0 && m_walkingCreatures.empty(); }
bool isLookPossible() { return (m_thingTypeFlag & TileThingType::BLOCK_PROJECTTILE) == 0; }
bool isEmpty() { return m_things.empty(); }
bool isDrawable() { return !isEmpty() || !m_walkingCreatures.empty() || !m_effects.empty(); }
bool isDrawable() { return !isEmpty() || !m_walkingCreatures.empty() || !m_effects.empty() || !m_attachedEffects.empty(); }
bool isCovered(int8_t firstFloor);
bool isCompletelyCovered(uint8_t firstFloor, bool resetCache);

Expand Down Expand Up @@ -180,7 +180,7 @@ class Tile : public AttachableObject
bool canRender(uint32_t& flags, const Position& cameraPosition, AwareRange viewPort);
bool canErase()
{
return m_walkingCreatures.empty() && m_effects.empty() && isEmpty() && m_minimapColor == 0
return m_walkingCreatures.empty() && m_effects.empty() && isEmpty() && m_minimapColor == 0 && m_attachedEffects.empty()
#ifdef FRAMEWORK_EDITOR
&& m_flags == 0
#endif
Expand Down

0 comments on commit a98fbdc

Please sign in to comment.