diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-14 17:50:54 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-14 17:50:54 +0000 |
commit | 6911443514135896a8bda0a28ff3a03ddaca9f3b (patch) | |
tree | 856532695f26abce4af06fb8e34ddd4d10ebc441 /play.js | |
parent | e7b3e0d037edd27cf6f9fc72978553f202b6785c (diff) | |
download | 1989-dawn-of-freedom-6911443514135896a8bda0a28ff3a03ddaca9f3b.tar.gz |
Fix VP marker going off screen
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |