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

Function SGSVisEffects

Descent3/gamesave.cpp:987–1001  ·  view source on GitHub ↗

save viseffects

Source from the content-addressed store, hash-verified

985
986// save viseffects
987void SGSVisEffects(CFILE *fp) {
988 int i, count = 0;
989
990 // count up all viseffects to write out.
991 for (i = 0; i <= Highest_vis_effect_index; i++)
992 if (VisEffects[i].type != VIS_NONE)
993 count++;
994
995 gs_WriteShort(fp, (int16_t)count);
996
997 for (i = 0; i <= Highest_vis_effect_index; i++) {
998 if (VisEffects[i].type != VIS_NONE)
999 cf_WriteBytes((uint8_t *)&VisEffects[i], sizeof(vis_effect), fp);
1000 }
1001}
1002
1003extern int Physics_NumLinked;
1004extern int PhysicsLinkList[MAX_OBJECTS];

Callers 2

SaveGameStateFunction · 0.85
DemoWriteHeaderFunction · 0.85

Calls 1

cf_WriteBytesFunction · 0.85

Tested by

no test coverage detected