11-06-2011, 08:26 AM
(11-06-2011, 08:12 AM)Sebi Wrote: Notch's thoughts: *I'm running out of block ids!* *Idea! Let's use negative ids!* :V
Also, in cPlayer.cpp (and also somewhere in monster file) at line 265 you have
And there are some rounding issues with negative coords (you are set on fire one block off lava block)Code:char block = GetWorld()->GetBlock( (int)m_Pos->x, (int)m_Pos->y, (int)m_Pos->z );
Something like this shall do:
Code:#define float2int(x) ((x)<0 ? ((int)(x))-1 : (int)(x))
char block = GetWorld()->GetBlock( float2int(m_Pos->x), float2int(m_Pos->y), float2int(m_Pos->z) );
Yeah, or just use floor() (slightly slower though), I got the same define you have in cNoise.cpp called FAST_FLOOR