summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
Diffstat (limited to 'src/Entities')
-rw-r--r--src/Entities/Entity.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp
index 4245f607d..646566ae6 100644
--- a/src/Entities/Entity.cpp
+++ b/src/Entities/Entity.cpp
@@ -1172,12 +1172,9 @@ void cEntity::TickBurning(cChunk & a_Chunk)
}
// Fire is extinguished by rain
- if (GetWorld()->IsWeatherWetAt(POSX_TOINT, POSZ_TOINT))
+ if (GetWorld()->IsWeatherWetAtXYZ(GetPosition().Floor()))
{
- if (POSY_TOINT > m_World->GetHeight(POSX_TOINT, POSZ_TOINT))
- {
- m_TicksLeftBurning = 0;
- }
+ m_TicksLeftBurning = 0;
}
// Do the burning damage: