mirror of
https://github.com/HarbourMasters/Starship
synced 2026-07-04 05:30:36 -04:00
Prevent loading checkpoints in the wrong level
This commit is contained in:
@@ -4678,7 +4678,7 @@ void Player_Setup(Player* playerx) {
|
||||
gDisplayedHitCount = gHitCount;
|
||||
D_hud_80161730 = 0;
|
||||
|
||||
if (CVarGetInteger("gCheckpoint.Set", 0)) {
|
||||
if (CVarGetInteger("gCheckpoint.Set", 0) && CVarGetInteger("gCheckpoint.gSavedLevel", -1) == gCurrentLevel) {
|
||||
gSavedGroundSurface = CVarGetInteger("gCheckpoint.gSavedGroundSurface", gSavedGroundSurface);
|
||||
gSavedPathProgress = CVarGetFloat("gCheckpoint.gSavedPathProgress", gSavedPathProgress);
|
||||
gSavedObjectLoadIndex = CVarGetInteger("gCheckpoint.gSavedObjectLoadIndex", gSavedObjectLoadIndex);
|
||||
|
||||
Reference in New Issue
Block a user