mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-27 11:40:52 +00:00
Wrapped Lua MapLoad hook in P_MapStart / P_MapEnd.
This fixes a crash if a script tries to use a MapLoad hook to immediately edit the map in some way the moment it finishes loading.
This commit is contained in:
parent
dfa8ac7ccb
commit
6ee50e803b
1 changed files with 2 additions and 0 deletions
|
@ -2786,7 +2786,9 @@ boolean P_SetupLevel(boolean skipprecip)
|
||||||
}
|
}
|
||||||
P_PreTicker(2);
|
P_PreTicker(2);
|
||||||
#ifdef HAVE_BLUA
|
#ifdef HAVE_BLUA
|
||||||
|
P_MapStart();
|
||||||
LUAh_MapLoad();
|
LUAh_MapLoad();
|
||||||
|
P_MapEnd();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue