From 56e7329f297cd8852e344bfebc5761fd4183ed79 Mon Sep 17 00:00:00 2001 From: Gargaj Date: Thu, 10 Dec 2015 20:41:51 +0100 Subject: Test for correct coordinates when fishing Fun fact: this was able to actually deadlock the server depending on where you were standing :) --- src/Entities/Floater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Entities') diff --git a/src/Entities/Floater.cpp b/src/Entities/Floater.cpp index 29d59e6c4..0b96f12df 100644 --- a/src/Entities/Floater.cpp +++ b/src/Entities/Floater.cpp @@ -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. { -- cgit v1.2.3