From 327552d8a5518b60d66d08954256148e98a14fdf Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 5 Jul 2023 00:12:54 +0200 Subject: Zap is_checkpoint. --- rules.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/rules.js b/rules.js index 3408f96..eb5bc6b 100644 --- a/rules.js +++ b/rules.js @@ -7259,13 +7259,6 @@ exports.setup = function (seed, scenario, options) { return game } -exports.is_checkpoint = function (a, b) { - let an = 0, bn = 0 - for (let line of a.log) if (typeof line === "string" && line.startsWith(".h2")) ++an - for (let line of b.log) if (typeof line === "string" && line.startsWith(".h2")) ++bn - return an !== bn -} - exports.view = function(state, current) { load_state(state) -- cgit v1.2.3