MCPcopy Create free account
hub / github.com/JACoders/OpenJK / CM_WritePortalState

Function CM_WritePortalState

code/qcommon/cm_load.cpp:1204–1213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1202int SG_Read(unsigned int chid, void *pvAddress, int iLength, void **ppvAddressPtr = NULL);
1203
1204void CM_WritePortalState()
1205{
1206 ojk::SavedGameHelper saved_game(
1207 &ojk::SavedGame::get_instance());
1208
1209 saved_game.write_chunk<int32_t>(
1210 INT_ID('P', 'R', 'T', 'S'),
1211 ::cmg.areaPortals,
1212 ::cmg.numAreas * ::cmg.numAreas);
1213}
1214
1215/*
1216===================

Callers 1

sv_savegame.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected