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

Function GetShipImage

Descent3/ship.cpp:250–254  ·  view source on GitHub ↗

Given a ship handle, returns an index to that ships model

Source from the content-addressed store, hash-verified

248
249// Given a ship handle, returns an index to that ships model
250int GetShipImage(int handle) {
251 ASSERT(Ships[handle].used > 0);
252
253 return (Ships[handle].model_handle);
254}
255
256// This is a very confusing function. It takes all the ships that we have loaded
257// and remaps then into their proper places (if they are static).

Callers 1

DrawPictureMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected