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

Function LoadWeaponSelectStates

Descent3/weapon.cpp:898–901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

896void SaveWeaponSelectStates(CFILE *fp) { cf_WriteShort(fp, Weapon_slot_mask); }
897
898void LoadWeaponSelectStates(CFILE *fp) {
899 uint16_t state = (uint16_t)cf_ReadShort(fp);
900 ResetWeaponSelectStates(state);
901}
902
903void SelectWeapon(int slot) {
904 if (Player_object->type != OBJ_PLAYER)

Callers

nothing calls this directly

Calls 2

cf_ReadShortFunction · 0.85
ResetWeaponSelectStatesFunction · 0.85

Tested by

no test coverage detected