diff --git a/src/lua_playerlib.c b/src/lua_playerlib.c index ef628ee42..ee90e99b0 100644 --- a/src/lua_playerlib.c +++ b/src/lua_playerlib.c @@ -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;