ID:93136
 
Resolved
When double-clicking, the Click() command initiated by the second click sent a location argument that didn't match the first click.
BYOND Version:464
Operating System:Windows 7 Ultimate
Web Browser:Internet Explorer 8.0
Applies to:Dream Seeker
Status: Resolved (480)

This issue has been resolved.
Descriptive Problem Summary:
Double clicking on a turf in the map is somehow making the map be Click()ed as well as the turf.
Numbered Steps to Reproduce Problem:
1.Make an empty map (filled with /turf naturally)
2.Enter below code snippet
3.Compile and run
4.Click on a /turf in the map in quick-succession
Code Snippet (if applicable) to Reproduce Problem:
turf/Click(location)
world << location


Expected Results:
For the map control to be returned each time
Actual Results:
If it's a double click, the following will be returned:
turf
map

Does the problem occur:
Every time? Or how often? Every time
In other games? N/A
In other user accounts? Yes
On other computers? Yes

When does the problem NOT occur?
Never, seemingly.
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.)
I tested in 462 and 464. Both worked the same way.

Workarounds:
Don't rely on it?
Your "object" variable isn't what was clicked on. That object represents - location: the turf, stat panel, grid cell, etc. in which the object was clicked.
It is somewhat strange that it returns differently on a double click. Its also strange that Click is running on top of DblClick.
Technically I think this should be returning the map every time.
"object" is a pretty silly thing to be naming it,yeah. I was just pulling it from the client/Click() example, whoopsie. -fixes-

P.S: The stuff mentioned in the report occurs for all atoms placed on the map, not just /turf