| 791 | } |
| 792 | |
| 793 | void PrepareMapForSave() |
| 794 | { |
| 795 | ViewportSetSavedView(); |
| 796 | |
| 797 | #ifdef ENABLE_SCRIPTING |
| 798 | auto& scriptEngine = GetContext()->GetScriptEngine(); |
| 799 | auto& hookEngine = scriptEngine.GetHookEngine(); |
| 800 | if (hookEngine.HasSubscriptions(Scripting::HookType::mapSave)) |
| 801 | { |
| 802 | hookEngine.Call(Scripting::HookType::mapSave, false); |
| 803 | } |
| 804 | #endif |
| 805 | } |
no test coverage detected