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

Function FreeShip

Descent3/ship.cpp:175–181  ·  view source on GitHub ↗

Frees ship index n

Source from the content-addressed store, hash-verified

173
174// Frees ship index n
175void 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
184int GetNextShip(int n) {

Callers 2

OnPshipDeleteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected