summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-28 11:28:03 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-30 21:59:25 +0200
commit5bd0eda4db476f29fd8f29532f2f9135fb9bc295 (patch)
tree27906e950fc96164934e2737803a82b6156a7895 /play.js
parent7f0bc6422715e637ec3b80f1426b3ae512298f4e (diff)
downloadfriedrich-5bd0eda4db476f29fd8f29532f2f9135fb9bc295.tar.gz
Allow "stop" before moving to flag lord as unmoved.
Diffstat (limited to 'play.js')
-rw-r--r--play.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/play.js b/play.js
index 82b264b..be86670 100644
--- a/play.js
+++ b/play.js
@@ -305,6 +305,7 @@ const fate_effect_text = [
const panel_order = [ P_PRUSSIA, P_HANOVER, P_RUSSIA, P_SWEDEN, P_AUSTRIA, P_IMPERIAL, P_FRANCE, P_FRANCE+1 ]
const panel_start = {
+ "Observer": P_PRUSSIA,
"Frederick": P_PRUSSIA,
"Elisabeth": P_RUSSIA,
"Maria Theresa": P_AUSTRIA,
@@ -344,7 +345,7 @@ function animate_position(e) {
}
function sort_power_panel(animate) {
- let start = panel_start[params.role]
+ let start = panel_start[params.role] | 0
if (animate)
for (let i = 0; i < 8; ++i)