mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +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…
Add table
Reference in a new issue