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

Function dsCustomRestore

scripts/Merc3.cpp:2302–2315  ·  view source on GitHub ↗

Restore custom data for this script

Source from the content-addressed store, hash-verified

2300
2301// Restore custom data for this script
2302void dsCustomRestore(void *fileptr) {
2303 // load in gravity room info.
2304 int i, j;
2305
2306 for (i = 0; i < N_ROOMS; i++) {
2307 for (j = 0; j < N_BOXES; j++) {
2308 Gravity_room_box_states[i][j] = File_ReadByte(fileptr);
2309 }
2310 }
2311
2312 // set gravity room info.
2313 cUpdateGravityRoomBoxStates(1);
2314 cUpdateGravityRoomBoxStates(2);
2315}
2316
2317/**{CUSTOM_SCRIPT_BLOCK_END}**** DO NOT EDIT! **/
2318// ============================================================

Callers 1

CallEventMethod · 0.70

Calls 1

Tested by

no test coverage detected