Fix new waypoints for legacy Lua if it manually sets the lap count
Fixes mods like wipezones
This commit is contained in:
parent
e52cde9c8b
commit
2e4901e78d
1 changed files with 7 additions and 0 deletions
|
|
@ -1730,7 +1730,14 @@ static int player_set(lua_State *L)
|
|||
{
|
||||
UINT8 laps = (UINT8)luaL_checkinteger(L, 3);
|
||||
if (lua_compatmode)
|
||||
{
|
||||
if (!K_UsingLegacyCheckpoints())
|
||||
{
|
||||
plr->pflags |= PF_TRUSTWAYPOINTS;
|
||||
}
|
||||
|
||||
plr->laps = max(laps +1, 0);
|
||||
}
|
||||
else
|
||||
plr->laps = laps;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue