Klima: Aktuell-Linien gruen->rot (CO2/Temp/Geflutet/Budget/Bev.) + "Nochmal spielen" setzt wirklich zurueck
- teacher.html: LIVE_PRIMARY_FIELDS.klima Kennzahlen mit _liveBar-Ampel (absolute Skalen), _liveBar +Nachkomma-Param; tick-Spalte entfernt (redundant zu Jahr) - game-2d/3d: beendete Laeufe (phase=end) werden beim Resume verworfen -> "Nochmal spielen"/erneutes Oeffnen startet frisch statt im Endbildschirm Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -5641,6 +5641,9 @@ function tryResume() {
|
||||
try {
|
||||
const d = JSON.parse(raw);
|
||||
if (!d || !d.tick || d.tick <= 0) continue;
|
||||
// Beendete Läufe nie wieder aufnehmen — sonst landet erneutes Öffnen
|
||||
// direkt im Endbildschirm. Alten Stand verwerfen.
|
||||
if (d.phase === 'end') { localStorage.removeItem(SAVE_KEY_BASE + '-' + lvl); continue; }
|
||||
deserializeState(d);
|
||||
hideOverlay('level-select-overlay');
|
||||
state.phase = (d.phase === 'citizen' ? 'playing' : d.phase) || 'playing';
|
||||
|
||||
Reference in New Issue
Block a user