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

Function osipf_IsShipEnabled

Descent3/osiris_predefs.cpp:3432–3437  ·  view source on GitHub ↗

is ship enabled

Source from the content-addressed store, hash-verified

3430
3431// is ship enabled
3432bool osipf_IsShipEnabled(char *ship_name) {
3433 msafe_struct ms;
3434 strcpy(ms.name, ship_name);
3435 msafe_GetValue(MSAFE_MISC_ENABLE_SHIP, &ms);
3436 return (bool)(ms.state != 0);
3437}
3438
3439// turns the given player into AI mode or back to regular control mode
3440void osipf_SetPlayerControlMode(int pnum, bool set_to_ai) {

Callers

nothing calls this directly

Calls 1

msafe_GetValueFunction · 0.85

Tested by

no test coverage detected