Changes all existing objects model_nums to a new model num
| 392 | |
| 393 | // Changes all existing objects model_nums to a new model num |
| 394 | void 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 | |
| 404 | void RemapObjects() { RemapStaticIDs(); }; |
no outgoing calls
no test coverage detected