parent
7b10068370
commit
ee2b8c7103
|
@ -1353,7 +1353,7 @@ void cPlayer::UseEquippedItem(void)
|
||||||
void cPlayer::SetSwimState(cChunk & a_Chunk)
|
void cPlayer::SetSwimState(cChunk & a_Chunk)
|
||||||
{
|
{
|
||||||
int RelY = (int)floor(m_LastPosY + 0.1);
|
int RelY = (int)floor(m_LastPosY + 0.1);
|
||||||
if ((RelY < 0) || (RelY >= cChunkDef::Height))
|
if ((RelY < 0) || (RelY >= cChunkDef::Height - 1))
|
||||||
{
|
{
|
||||||
m_IsSwimming = false;
|
m_IsSwimming = false;
|
||||||
m_IsSubmerged = false;
|
m_IsSubmerged = false;
|
||||||
|
|
Loading…
Reference in New Issue