| 3052 | */ |
| 3053 | |
| 3054 | qboolean NPC_ReserveCombatPoint( int combatPointID ) |
| 3055 | { |
| 3056 | //Make sure it's valid |
| 3057 | if ( combatPointID > level.numCombatPoints ) |
| 3058 | return qfalse; |
| 3059 | |
| 3060 | //Make sure it's not already occupied |
| 3061 | if ( level.combatPoints[combatPointID].occupied ) |
| 3062 | return qfalse; |
| 3063 | |
| 3064 | //Reserve it |
| 3065 | level.combatPoints[combatPointID].occupied = qtrue; |
| 3066 | |
| 3067 | return qtrue; |
| 3068 | } |
| 3069 | |
| 3070 | /* |
| 3071 | ------------------------- |
no outgoing calls
no test coverage detected