1
0

Hotfix for #83.

Do not tick the player while their chunk is invalid.
This commit is contained in:
madmaxoft 2013-08-20 21:17:33 +02:00
parent 654c34705c
commit e8f7b72f1b

View File

@ -200,6 +200,12 @@ void cPlayer::Tick(float a_Dt, cChunk & a_Chunk)
}
}
if (!a_Chunk.IsValid())
{
// This may happen if the cPlayer is created before the chunks have the chance of being loaded / generated (#83)
return;
}
super::Tick(a_Dt, a_Chunk);
// Set player swimming state