summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-09 17:40:43 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-09 17:40:43 +0200
commite2e10cbf9eead62f4a846789703df66c5ff87447 (patch)
treeaa047da8aebd7bc93283784805fe4f3f09238983 /rules.js
parentb7011f3641a56ea7289663522c2dc1e479875d85 (diff)
downloadwashingtons-war-e2e10cbf9eead62f4a846789703df66c5ff87447.tar.gz
fix typo
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index 70891a4..678fa8d 100644
--- a/rules.js
+++ b/rules.js
@@ -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));
}