diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-15 23:50:00 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-15 23:50:00 +0100 |
commit | d15d40ad6969cc2d0945853fa13622cbef9f5b98 (patch) | |
tree | d47f3bd2c09ee9578e68defd7804017ec8701cfb /source/cPawn.cpp | |
parent | New players no longer cause an assert (diff) | |
download | cuberite-d15d40ad6969cc2d0945853fa13622cbef9f5b98.tar cuberite-d15d40ad6969cc2d0945853fa13622cbef9f5b98.tar.gz cuberite-d15d40ad6969cc2d0945853fa13622cbef9f5b98.tar.bz2 cuberite-d15d40ad6969cc2d0945853fa13622cbef9f5b98.tar.lz cuberite-d15d40ad6969cc2d0945853fa13622cbef9f5b98.tar.xz cuberite-d15d40ad6969cc2d0945853fa13622cbef9f5b98.tar.zst cuberite-d15d40ad6969cc2d0945853fa13622cbef9f5b98.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cPawn.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/cPawn.cpp b/source/cPawn.cpp index 0e169e676..ff4c957e8 100644 --- a/source/cPawn.cpp +++ b/source/cPawn.cpp @@ -167,9 +167,9 @@ void cPawn::SetMetaData(MetaData a_MetaData) //----Change Entity MetaData
void cPawn::CheckMetaDataBurn()
{
- char Block = GetWorld()->GetBlock((int) m_Pos->x, (int) m_Pos->y, (int) m_Pos->z);
- char BlockAbove = GetWorld()->GetBlock((int) m_Pos->x, (int) m_Pos->y + 1, (int) m_Pos->z);
- char BlockBelow = GetWorld()->GetBlock((int) m_Pos->x, (int) m_Pos->y - 1, (int) m_Pos->z);
+ char Block = GetWorld()->GetBlock((int) m_Pos.x, (int) m_Pos.y, (int) m_Pos.z);
+ char BlockAbove = GetWorld()->GetBlock((int) m_Pos.x, (int) m_Pos.y + 1, (int) m_Pos.z);
+ char BlockBelow = GetWorld()->GetBlock((int) m_Pos.x, (int) m_Pos.y - 1, (int) m_Pos.z);
if (
(GetMetaData() == BURNING) &&
@@ -200,8 +200,8 @@ void cPawn::CheckMetaDataBurn() void cPawn::InStateBurning(float a_Dt)
{
m_FireDamageInterval += a_Dt;
- char Block = GetWorld()->GetBlock( (int)m_Pos->x, (int)m_Pos->y, (int)m_Pos->z );
- char BlockAbove = GetWorld()->GetBlock( (int)m_Pos->x, (int)m_Pos->y + 1, (int)m_Pos->z );
+ char Block = GetWorld()->GetBlock( (int)m_Pos.x, (int)m_Pos.y, (int)m_Pos.z );
+ char BlockAbove = GetWorld()->GetBlock( (int)m_Pos.x, (int)m_Pos.y + 1, (int)m_Pos.z );
if (m_FireDamageInterval > 800)
{
|