Revert "Fix map hooks not providing the current maps in compatmode"

This reverts commit 5de81eb62b.
This commit is contained in:
NepDisk 2026-02-11 15:34:06 -05:00
parent 4d1454a299
commit 6b4081663a

View file

@ -640,7 +640,8 @@ void LUA_HookGamemap(int hook_type)
Hook_State hook = {}; Hook_State hook = {};
if (prepare_hook(&hook, 0, hook_type)) if (prepare_hook(&hook, 0, hook_type))
{ {
lua_pushinteger(gL, lua_compatmode ? G_NativeMapToKart(gamemap) : gamemap); lua_pushinteger(gL, gamemap);
lua_pushinteger(gL, G_NativeMapToKart(gamemap));
init_hook_call(&hook, 0, res_none); init_hook_call(&hook, 0, res_none);
hook.values = 1; hook.values = 1;
call_mapped_gamemap(&hook, &hookIds[hook.hook_type]); call_mapped_gamemap(&hook, &hookIds[hook.hook_type]);