Fix map hooks not providing the current maps in compatmode
This commit is contained in:
parent
adce4197e0
commit
5de81eb62b
1 changed files with 1 additions and 2 deletions
|
|
@ -640,8 +640,7 @@ void LUA_HookGamemap(int hook_type)
|
|||
Hook_State hook = {};
|
||||
if (prepare_hook(&hook, 0, hook_type))
|
||||
{
|
||||
lua_pushinteger(gL, gamemap);
|
||||
lua_pushinteger(gL, G_NativeMapToKart(gamemap));
|
||||
lua_pushinteger(gL, lua_compatmode ? G_NativeMapToKart(gamemap) : gamemap);
|
||||
init_hook_call(&hook, 0, res_none);
|
||||
hook.values = 1;
|
||||
call_mapped_gamemap(&hook, &hookIds[hook.hook_type]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue