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

Function ChangeOldModelsForObjects

Descent3/objinfo.cpp:394–402  ·  view source on GitHub ↗

Changes all existing objects model_nums to a new model num

Source from the content-addressed store, hash-verified

392
393// Changes all existing objects model_nums to a new model num
394void ChangeOldModelsForObjects(int old_handle, int new_handle) {
395 int i;
396
397 for (i = 0; i <= Highest_object_index; i++) {
398 if (Objects[i].render_type == RT_POLYOBJ && Objects[i].rtype.pobj_info.model_num == old_handle) {
399 Objects[i].rtype.pobj_info.model_num = new_handle;
400 }
401 }
402}
403
404void RemapObjects() { RemapStaticIDs(); };

Callers 2

OnGenericChangeModelMethod · 0.85
OnPshipLoadModelMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected