Puts the entity on fire for the specified amount of ticks
| 1042 | |
| 1043 | /// Puts the entity on fire for the specified amount of ticks |
| 1044 | void cEntity::StartBurning(int a_TicksLeftBurning) |
| 1045 | { |
| 1046 | if (m_TicksLeftBurning > 0) |
| 1047 | { |
| 1048 | // Already burning, top up the ticks left burning and bail out: |
| 1049 | m_TicksLeftBurning = std::max(m_TicksLeftBurning, a_TicksLeftBurning); |
| 1050 | return; |
| 1051 | } |
| 1052 | |
| 1053 | m_TicksLeftBurning = a_TicksLeftBurning; |
| 1054 | OnStartedBurning(); |
| 1055 | } |
| 1056 | |
| 1057 | |
| 1058 |
no outgoing calls
no test coverage detected