summaryrefslogtreecommitdiff
path: root/VP-roomwork.lua
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2013-06-22 21:29:21 -0700
committerPixel <pixel@nobis-crew.org>2013-06-22 21:29:21 -0700
commitcc1cd492e7bdc6ea25647f49cc59ebc9edecc637 (patch)
tree6c22693e66fe7af123b58713178bf8f686129f56 /VP-roomwork.lua
parent1a315c0460c96e81797d0e5fc3d6874f4aa6cf44 (diff)
I think there's an overlap problem in the extraction with the windows. This at least will work around the insertion.
Diffstat (limited to 'VP-roomwork.lua')
-rw-r--r--VP-roomwork.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/VP-roomwork.lua b/VP-roomwork.lua
index 839b5af..d07cdf4 100644
--- a/VP-roomwork.lua
+++ b/VP-roomwork.lua
@@ -57,6 +57,7 @@ function patch_logic(logic, windows, activate_debug)
local window = windows[txtptr + ptr_start]
if not window then return end
if window.wtype == "fixed" then return end
+ if window.x == "var" or window.y == "var" or window.width == "var" or window.height == "var" then return end
local arg1 = orB(window.x, shl(window.y, 16))
local arg2 = orB(window.width, shl(window.height, 16))
patch_opcode(PC + 1, arg1)