MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / FreeWeapon

Function FreeWeapon

Descent3/weapon.cpp:496–502  ·  view source on GitHub ↗

Frees weapon index n and all associated images

Source from the content-addressed store, hash-verified

494
495// Frees weapon index n and all associated images
496void 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
505int GetNextWeapon(int n) {

Callers 4

OnDeleteWeaponMethod · 0.85
MatchWeaponToIndexFunction · 0.85
MoveWeaponFromIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected