* Advances the phase of falling sequence. */
| 1055 | * Advances the phase of falling sequence. |
| 1056 | */ |
| 1057 | void BattleUnit::keepFalling() |
| 1058 | { |
| 1059 | _fallPhase++; |
| 1060 | int endFrame = 3; |
| 1061 | if (_spawnUnit != "" && _specab != SPECAB_RESPAWN) |
| 1062 | { |
| 1063 | endFrame = 18; |
| 1064 | } |
| 1065 | if (_fallPhase == endFrame) |
| 1066 | { |
| 1067 | _fallPhase--; |
| 1068 | if (_health == 0) |
| 1069 | _status = STATUS_DEAD; |
| 1070 | else |
| 1071 | _status = STATUS_UNCONSCIOUS; |
| 1072 | } |
| 1073 | |
| 1074 | _cacheInvalid = true; |
| 1075 | } |
| 1076 | |
| 1077 | |
| 1078 | /** |
no outgoing calls
no test coverage detected