ID:2951212
 
BYOND Version:515
Operating System:Windows 11 Home 64-bit
Web Browser:Firefox 132.0
Applies to:Dream Seeker
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:
Possibly related to: https://www.byond.com/forum/post/2951180 but it seems like a different issue.

PASS_MOUSE appearance flag doesn't properly pass the Click() of a obj or mob off when the mob/obj is not directly atop of the slate object.

This behavior is not the same when the object is directly in vis contents and put somewhere, either on screen or world not as a render_target/source.

Numbered Steps to Reproduce Problem:
1. Click the 'bugged' verb
2. Click the upper purple rectangle.

Code Snippet (if applicable) to Reproduce Problem:
test case: https://drive.google.com/file/d/ 1oVxxl2YQMIFY-AqbwFM2hpocMZ7LacyV/view?usp=sharing
mob/verb/bugged()
var/obj/r = new(null)
r.vis_contents += block(locate(1,1,2),locate(1,2,2))
r.render_target = "*test"
r.appearance_flags = KEEP_TOGETHER
r.screen_loc = "1,1"

var/obj/s = new(usr.loc)
s.appearance_flags = PASS_MOUSE
s.render_source = "*test"
usr.client.screen += r

mob/verb/not_bugged()
var/obj/r = new(null)
r.vis_contents += block(locate(1,1,2),locate(1,2,2))
r.screen_loc = "1,1"
r.appearance_flags = KEEP_TOGETHER
usr.client.screen += r

mob/verb/not_bugged2()
var/obj/r = new(locate(usr.x+1,usr.y+1,usr.z))
r.vis_contents += block(locate(1,1,2),locate(1,2,2))
r.appearance_flags = KEEP_TOGETHER


Expected Results:
The clicked Mob's Click() fires.

Actual Results:
The click happens on the real turf below.

Does the problem occur:
Every time? Or how often? Whenever the object/mob is not atop of the slate object.
In other games? n/a
In other user accounts? yes
On other computers? yes

When does the problem NOT occur?
Whenever the object/mob is atop of the slate object.

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
no

Workarounds:
This behavior does not hold the same in either the not_bugged or not_bugged2 verbs, which demonstrate the same thing without a render_target/source. Clicking on the upper rectangle in those will yield a proper Click() on the mob.

Login to reply.