summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-14 17:50:54 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-14 17:50:54 +0000
commit6911443514135896a8bda0a28ff3a03ddaca9f3b (patch)
tree856532695f26abce4af06fb8e34ddd4d10ebc441 /play.js
parente7b3e0d037edd27cf6f9fc72978553f202b6785c (diff)
download1989-dawn-of-freedom-6911443514135896a8bda0a28ff3a03ddaca9f3b.tar.gz
Fix VP marker going off screen
Diffstat (limited to 'play.js')
-rw-r--r--play.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/play.js b/play.js
index 6838700..c113f9b 100644
--- a/play.js
+++ b/play.js
@@ -534,6 +534,9 @@ function layout_tst_marker(e, v, top) {
function layout_vp_marker() {
let x, y
+
+ if (view.vp > 21) { view.vp = 21 }
+ if (view.vp < -21) { view.vp = -21 }
if (view.vp === 0) {
y = 2425 + 25
x = 843 + 28