1
0

Test for correct coordinates when fishing

Fun fact: this was able to actually deadlock the server depending on where you were standing :)
This commit is contained in:
Gargaj
2015-12-10 20:41:51 +01:00
parent 2b2e0f3b2c
commit d05fdbdee9
2 changed files with 2 additions and 1 deletions

View File

@@ -155,7 +155,7 @@ void cFloater::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
}
m_CountDownTime--;
if (m_World->GetHeight(POSX_TOINT, POSY_TOINT) == POSZ_TOINT)
if (m_World->GetHeight(POSX_TOINT, POSZ_TOINT) == POSY_TOINT)
{
if (m_World->IsWeatherWet() && m_World->GetTickRandomNumber(3) == 0) // 25% chance of an extra countdown when being rained on.
{