diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-07-05 00:12:54 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-07-05 00:12:54 +0200 |
commit | 327552d8a5518b60d66d08954256148e98a14fdf (patch) | |
tree | 75a5add1c98bb3174afffbcc0740c9740a401303 | |
parent | f9894f29d8f2f5ad0c013af4c5f1db806d9e2191 (diff) | |
download | rommel-in-the-desert-327552d8a5518b60d66d08954256148e98a14fdf.tar.gz |
Zap is_checkpoint.
-rw-r--r-- | rules.js | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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) |