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

Function SGSObjEffects

Descent3/gamesave.cpp:1273–1281  ·  view source on GitHub ↗

saves fx

Source from the content-addressed store, hash-verified

1271
1272// saves fx
1273void SGSObjEffects(CFILE *fp, const object *op) {
1274 effect_info_s *ei = op->effect_info;
1275
1276 gs_WriteByte(fp, (ei ? 1 : 0));
1277 if (ei) {
1278 gs_WriteShort(fp, sizeof(effect_info_s));
1279 cf_WriteBytes((uint8_t *)ei, sizeof(effect_info_s), fp);
1280 }
1281}
1282
1283// saves wb
1284void SGSObjWB(CFILE *fp, object *op, int num_wbs) {

Callers 1

SGSObjectsFunction · 0.85

Calls 1

cf_WriteBytesFunction · 0.85

Tested by

no test coverage detected