bug fixes
This commit is contained in:
@@ -27,11 +27,21 @@ async function sendChunk() {
|
||||
if (data.serverObs) {
|
||||
serverObstacles = data.serverObs;
|
||||
|
||||
// --- NEU: DEBUG MODUS VERGLEICH ---
|
||||
if (typeof DEBUG_SYNC !== 'undefined' && DEBUG_SYNC) {
|
||||
compareState(snapshotobstacles, data.serverObs);
|
||||
}
|
||||
// ----------------------------------
|
||||
|
||||
if (data.powerups) {
|
||||
const sTick = data.serverTick;
|
||||
|
||||
if (lastPowerupTick > sTick) {
|
||||
} else {
|
||||
godModeLives = data.powerups.godLives;
|
||||
hasBat = data.powerups.hasBat;
|
||||
bootTicks = data.powerups.bootTicks;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (data.status === "dead") {
|
||||
|
||||
Reference in New Issue
Block a user