Frees ship index n
| 173 | |
| 174 | // Frees ship index n |
| 175 | void FreeShip(int n) { |
| 176 | ASSERT(Ships[n].used > 0); |
| 177 | |
| 178 | Ships[n].used = 0; |
| 179 | Ships[n].name[0] = 0; |
| 180 | Num_ships--; |
| 181 | } |
| 182 | |
| 183 | // Gets next ship from n that has actually been alloced |
| 184 | int GetNextShip(int n) { |
no outgoing calls
no test coverage detected