fix: entrar i eixir al mode debug manté l'estat previ del jugador

This commit is contained in:
2026-04-01 20:17:31 +02:00
parent fe520dd341
commit 0c8aa5fe50
2 changed files with 22 additions and 3 deletions

View File

@@ -130,5 +130,7 @@ class Game {
// Variables de debug para arrastre con ratón
bool debug_dragging_player_{false}; // Indica si estamos arrastrando al jugador con el ratón
float debug_drag_speed_{0.0F}; // Velocidad actual del arrastre (ease-in)
// Estado previo de invencibilidad antes de entrar en modo debug
bool invincible_before_debug_{false};
#endif
};