Files

34 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# chroma_trail.js — startLoop() (satır 438)
[← chroma_trail.js](index.md) · [← Master](../../wiki.md)
Parça 8/8 · [önceki](startLoop-7.md)
```javascript
// koyma olduysa acele yok (bayat kayit strict oynatilir, zararsiz).
if (placedNow || (dirtyS && tick % SAVE_EVERY === 0)) saveServer();
if (pp && (placedNow || (dirtyM && tick % MIRROR_EVERY === 0))) saveMirror(pp);
} catch (e5) {
report(e5);
}
if (on || live > stuck.length || hasRetryable()) {
ctx.scheduleScript(0, loop); // 0 = bir sonraki tick
return;
}
// Iz kapali ve kuyruk bos: temiz cikis. Geri konamayanlar (varsa)
// listede kalir, recover/sonraki kullanim tekrar dener.
try {
saveServer();
if (pp) saveMirror(pp);
else sstates.setString(S_MIRROR_DONE + name, sessionId()); // yedek bayat
} catch (e6) {}
mappet.set(G_HB + name, -1000000);
mappet.set(G_COUNT + name, 0);
}
c.scheduleScript(0, loop);
}
```