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 committed by GenericHeroGuy
parent 3e1e1245ce
commit abc004ddc8

View file

@ -675,12 +675,12 @@ 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_hud(&hook, map);
// Catch runaway clipping rectangles.
V_ClearClipRect();
hud_running = false;
}
}