1
0

Fixed indentation and changed m_Fireproof to m_IsFireproof.

This commit is contained in:
archshift 2014-04-22 02:36:39 -10:00
parent 1cf396c814
commit 06f41699af
2 changed files with 14 additions and 14 deletions

View File

@ -788,10 +788,10 @@ void cEntity::TickBurning(cChunk & a_Chunk)
m_TicksSinceLastBurnDamage++; m_TicksSinceLastBurnDamage++;
if (m_TicksSinceLastBurnDamage >= BURN_TICKS_PER_DAMAGE) if (m_TicksSinceLastBurnDamage >= BURN_TICKS_PER_DAMAGE)
{ {
if (!m_Fireproof) if (!m_IsFireproof)
{ {
TakeDamage(dtOnFire, NULL, BURN_DAMAGE, 0); TakeDamage(dtOnFire, NULL, BURN_DAMAGE, 0);
} }
m_TicksSinceLastBurnDamage = 0; m_TicksSinceLastBurnDamage = 0;
} }
m_TicksLeftBurning--; m_TicksLeftBurning--;
@ -859,10 +859,10 @@ void cEntity::TickBurning(cChunk & a_Chunk)
m_TicksSinceLastLavaDamage++; m_TicksSinceLastLavaDamage++;
if (m_TicksSinceLastLavaDamage >= LAVA_TICKS_PER_DAMAGE) if (m_TicksSinceLastLavaDamage >= LAVA_TICKS_PER_DAMAGE)
{ {
if (!m_Fireproof) if (!m_IsFireproof)
{ {
TakeDamage(dtLavaContact, NULL, LAVA_DAMAGE, 0); TakeDamage(dtLavaContact, NULL, LAVA_DAMAGE, 0);
} }
m_TicksSinceLastLavaDamage = 0; m_TicksSinceLastLavaDamage = 0;
} }
} }
@ -880,10 +880,10 @@ void cEntity::TickBurning(cChunk & a_Chunk)
m_TicksSinceLastFireDamage++; m_TicksSinceLastFireDamage++;
if (m_TicksSinceLastFireDamage >= FIRE_TICKS_PER_DAMAGE) if (m_TicksSinceLastFireDamage >= FIRE_TICKS_PER_DAMAGE)
{ {
if (!m_Fireproof) if (!m_IsFireproof)
{ {
TakeDamage(dtFireContact, NULL, FIRE_DAMAGE, 0); TakeDamage(dtFireContact, NULL, FIRE_DAMAGE, 0);
} }
m_TicksSinceLastFireDamage = 0; m_TicksSinceLastFireDamage = 0;
} }
} }

View File

@ -435,8 +435,8 @@ protected:
cWorld * m_World; cWorld * m_World;
/// Whether the entity is capable of taking fire or lava damage. /// Whether the entity is capable of taking fire or lava damage.
bool m_Fireproof; bool m_IsFireproof;
/// Time, in ticks, since the last damage dealt by being on fire. Valid only if on fire (IsOnFire()) /// Time, in ticks, since the last damage dealt by being on fire. Valid only if on fire (IsOnFire())
int m_TicksSinceLastBurnDamage; int m_TicksSinceLastBurnDamage;