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

Function SGSSpew

Descent3/gamesave.cpp:1302–1311  ·  view source on GitHub ↗

load spew

Source from the content-addressed store, hash-verified

1300
1301// load spew
1302void SGSSpew(CFILE *fp) {
1303 int i;
1304
1305 gs_WriteShort(fp, (int16_t)spew_count);
1306 for (i = 0; i < MAX_SPEW_EFFECTS; i++) {
1307 gs_WriteByte(fp, SpewEffects[i].inuse ? true : false);
1308 if (SpewEffects[i].inuse)
1309 cf_WriteBytes((uint8_t *)&SpewEffects[i], sizeof(spewinfo), fp);
1310 }
1311}
1312
1313// save matcens
1314void SGSMatcens(CFILE *fp) {

Callers 2

SaveGameStateFunction · 0.85
DemoWriteHeaderFunction · 0.85

Calls 1

cf_WriteBytesFunction · 0.85

Tested by

no test coverage detected