Fix waiting loop timing bug - subtract delay when releasing loop buildings

Fixes #126
This commit is contained in:
Emerson Freitas
2026-05-02 16:27:28 -03:00
parent 544496c515
commit c45c5b9728
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -476,12 +476,14 @@ class Automation {
// update data that can be done in one swoop instead of using multiple update queries
// no special checks for Romans
$loopDelay = ceil(60 / SPEED);
foreach ($loopconUpdates as $villageId => $updateCondition) {
$database->query(
"UPDATE
".TB_PREFIX."bdata
SET
loopcon = 0
loopcon = 0,
timestamp = timestamp - ".$loopDelay."
WHERE
loopcon = 1 AND
master = 0 AND