summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-10-26 12:21:13 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-10-26 12:21:13 +0100
commit264161f150688577c757835dafbd78645106172c (patch)
treea60eecdaff91a284bd255c65db1cd32d16638260 /play.js
parent1bfe93eea7faffbe59af0b5c2c0f6aa6889527e4 (diff)
download1989-dawn-of-freedom-264161f150688577c757835dafbd78645106172c.tar.gz
Remove null space
Diffstat (limited to 'play.js')
-rw-r--r--play.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/play.js b/play.js
index 7f73430..dc2c592 100644
--- a/play.js
+++ b/play.js
@@ -18,7 +18,7 @@ function on_click_action(evt) {
send_action(evt.target.my_action, evt.target.my_id)
}
-const last_space = 75
+const last_space = 74
const last_card = 110
const last_power_card = 52
@@ -152,11 +152,11 @@ function create_ui() {
// SUPPORTING FUNCTIONS
function on_click_space(evt) {
- if (evt.button === 0) {
- const space = evt.target.my_space;
- //console.log('on_click_space_called with space:', space);
- if (send_action('space', space)) {
- //console.log('send_action with infl:', space);
+ if (evt.button === 0) {
+ const space = evt.target.my_space
+ //console.log('on_click_space_called with space:', space);
+ if (send_action("space", space)) {
+ console.log('send_action with space:', space);
evt.stopPropagation()
} else if (send_action("sc", space)) {
//console.log('send_action with sc:', space);
@@ -655,4 +655,4 @@ var LAYOUT = {
"vp_neg_19": [246,2456,55,50],
"vp_neg_2": [772,2395,56,51],
"vp_neg_20": [215,2395,55,51],
-}
+} \ No newline at end of file