Skip to content

Feat/solucionar crash checkpoints#398

Merged
TheUnrealZaka merged 2 commits into
mainfrom
feat/solucionar-crash-checkpoints
Jun 11, 2026
Merged

Feat/solucionar crash checkpoints#398
TheUnrealZaka merged 2 commits into
mainfrom
feat/solucionar-crash-checkpoints

Conversation

@MarcPladellorensPerez

Copy link
Copy Markdown
Contributor

Canvis

Issues relacionades

Tipus de canvi

  • feat: Nova funcionalitat
  • fix: Correcció de bug
  • art: Asset gràfic
  • docs: Documentació
  • refactor: Refactorització de codi
  • build: Canvis al sistema de build

Checklist

  • El codi compila sense errors
  • He provat els canvis localment
  • He seguit les naming conventions (PascalCase classes, camelCase mètodes, m_ membres)
  • He usat Conventional Commits al títol del PR
  • He enllaçat la Issue corresponent

Allow checkpoint respawn to proceed even when no checkpoint save exists and handle that case by cleanly restarting the current level. Removed the early HasCheckpointSave check from RequestCheckpointRespawn and updated ResolveCheckpointTransition to only call QuickLoadImmediate when a checkpoint exists; otherwise it performs a full in-place level reload. The fallback preserves player equipment and equipped item, resets entity/physics/map state and puzzle manager, reloads the map/entities, recreates the player if needed (with a level-dependent spawn position), restores health and equipment, and reinitializes camera, audio and UI state. Logs were added to indicate whether a checkpoint respawn or a clean restart was performed.
@MarcPladellorensPerez MarcPladellorensPerez linked an issue Jun 11, 2026 that may be closed by this pull request
@MarcPladellorensPerez MarcPladellorensPerez self-assigned this Jun 11, 2026
@TheUnrealZaka TheUnrealZaka merged commit f61cd04 into main Jun 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Solucionar crash checkpoints

2 participants