Private
Public Access
1
0

fix Sync Spawn Timer
Some checks failed
Dynamic Branch Deploy / build-and-deploy (push) Failing after 1m19s

This commit is contained in:
Sebastian Unterschütz
2025-11-27 20:14:51 +01:00
parent 7a088c29db
commit 1f2767a3d4
2 changed files with 4 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ func handleValidate(w http.ResponseWriter, r *http.Request) {
}
// ---> HIER RUFEN WIR JETZT DIE SIMULATION AUF <---
isDead, score, obstacles, powerUpState, serverTick := simulateChunk(req.SessionID, req.Inputs, req.TotalTicks, vals)
isDead, score, obstacles, powerUpState, serverTick, nextSpawnTick := simulateChunk(req.SessionID, req.Inputs, req.TotalTicks, vals)
status := "alive"
if isDead {
@@ -80,6 +80,7 @@ func handleValidate(w http.ResponseWriter, r *http.Request) {
ServerObs: obstacles,
PowerUps: powerUpState,
ServerTick: serverTick,
NextSpawnTick: nextSpawnTick,
})
}