Move V_ClearClipRect after call_mapped

based on toaster's suggestion
This commit is contained in:
hayaunderscore 2024-08-26 10:25:09 +08:00
parent f3e1cf814e
commit 49c49dab3b

View file

@ -688,11 +688,11 @@ void LUA_HookHUD(huddrawlist_h list, int hook_type)
hud_running = true; // local hook
// Catch runaway clipping rectangles.
V_ClearClipRect();
init_hook_call(&hook, 0, res_none);
call_mapped(&hook, &hudHookIds[hook_type]);
// Catch runaway clipping rectangles.
V_ClearClipRect();
hud_running = false;
}