Osiris_UnloadMissionModule Purpose: Instead of saving the handle returned from Osiris_LoadMissionModule() and calling Osiris_UnloadModule() with that handle, you can just call this, instead of the call to Osiris_UnloadModule().
| 1412 | // Osiris_UnloadModule() with that handle, you can just call this, instead of the call |
| 1413 | // to Osiris_UnloadModule(). |
| 1414 | void Osiris_UnloadMissionModule(void) { |
| 1415 | if ((Game_mode & GM_MULTI) && (Netgame.local_role != LR_SERVER)) { |
| 1416 | // no scripts for a client! |
| 1417 | return; |
| 1418 | } |
| 1419 | |
| 1420 | if (!tOSIRISCurrentMission.mission_loaded) |
| 1421 | return; |
| 1422 | |
| 1423 | int dll_id = tOSIRISCurrentMission.dll_id; |
| 1424 | |
| 1425 | Osiris_FreeModule(dll_id); |
| 1426 | } |
| 1427 | |
| 1428 | // Osiris_BindScriptsToObject |
| 1429 | // Purpose: |
no test coverage detected