diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-05-09 17:40:43 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-08-21 00:28:20 +0200 |
commit | 34d39fe5eb8b6e6f96436b6ea1ff1631d79ba064 (patch) | |
tree | 09cb25686112a253426dd6830015c9a88da772eb | |
parent | 5b72caa4f571b574900cd043de88c8371d54114c (diff) | |
download | washingtons-war-34d39fe5eb8b6e6f96436b6ea1ff1631d79ba064.tar.gz |
fix typo
-rw-r--r-- | rules.js | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -419,10 +419,6 @@ function has_enemy_pc(space) { return has_british_pc(space); } -function has_no_pc(space) { - return game.pc[space] != BRITISH && game.pc[space] != AMERICAN; -} - function is_adjacent_to_british_pc(a) { for (let b of SPACES[a].exits) if (has_british_pc(b)) @@ -936,7 +932,7 @@ function surrender_american_army(where) { function surrender_british_army(where) { let g = find_british_general(where); if (g) - capture_british_general(g); + capture_british_general(where); game.british_losses += count_british_cu(where); remove_cu(BRITISH, where, count_british_cu(where)); } |