Frees weapon index n and all associated images
| 494 | |
| 495 | // Frees weapon index n and all associated images |
| 496 | void FreeWeapon(int n) { |
| 497 | ASSERT(Weapons[n].used > 0); |
| 498 | |
| 499 | Weapons[n].used = 0; |
| 500 | Weapons[n].name[0] = 0; |
| 501 | Num_weapons--; |
| 502 | } |
| 503 | |
| 504 | // Gets next weapon from n that has actually been alloced |
| 505 | int GetNextWeapon(int n) { |
no outgoing calls
no test coverage detected