Stops the entity from burning, resets all burning timers
| 1060 | |
| 1061 | /// Stops the entity from burning, resets all burning timers |
| 1062 | void cEntity::StopBurning(void) |
| 1063 | { |
| 1064 | bool HasBeenBurning = (m_TicksLeftBurning > 0); |
| 1065 | m_TicksLeftBurning = 0; |
| 1066 | m_TicksSinceLastBurnDamage = 0; |
| 1067 | m_TicksSinceLastFireDamage = 0; |
| 1068 | m_TicksSinceLastLavaDamage = 0; |
| 1069 | |
| 1070 | // Notify if the entity has stopped burning |
| 1071 | if (HasBeenBurning) |
| 1072 | { |
| 1073 | OnFinishedBurning(); |
| 1074 | } |
| 1075 | } |
| 1076 | |
| 1077 | |
| 1078 |