Bridge tear test without imps (they would mend the bridge)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Opus 5.5 committed 2026-11-05 21:36:00 +01:00
1 parent 29e4970ab1
commit 76c23a06f0
1 file changed
+2
+2
View File
@@ -6018,6 +6018,8 @@ mod tests {
} }
g.map.t[idx(bx, by)].kind = Kind::Bridge; g.map.t[idx(bx, by)].kind = Kind::Bridge;
g.map.t[idx(bx, by)].owner = Owner::Player; g.map.t[idx(bx, by)].owner = Owner::Player;
// no imps around to mend it (and to be attacked instead)
g.ents.retain(|e| e.hero);
let mut torn = false; let mut torn = false;
for _ in 0..(90 * 20) { for _ in 0..(90 * 20) {
g.update(0.05); g.update(0.05);