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

Function SGSObjWB

Descent3/gamesave.cpp:1284–1296  ·  view source on GitHub ↗

saves wb

Source from the content-addressed store, hash-verified

1282
1283// saves wb
1284void SGSObjWB(CFILE *fp, object *op, int num_wbs) {
1285 int i;
1286
1287 if (op->dynamic_wb) {
1288 gs_WriteByte(fp, (int8_t)num_wbs);
1289 for (i = 0; i < num_wbs; i++) {
1290 dynamic_wb_info *dwb = &op->dynamic_wb[i];
1291 cf_WriteBytes((uint8_t *)dwb, sizeof(dynamic_wb_info), fp);
1292 }
1293 } else {
1294 gs_WriteByte(fp, 0);
1295 }
1296}
1297
1298// saves special object info
1299void SGSObjSpecial(CFILE *fp, const object *op) {}

Callers 1

SGSObjectsFunction · 0.85

Calls 1

cf_WriteBytesFunction · 0.85

Tested by

no test coverage detected