Click() doesn't work if loc == null in Bug Reports
|
|
Not a bug
| BYOND Version: | 471 |
| Operating System: | Windows 7 Ultimate 64-bit |
| Web Browser: | Chrome 5.0.375.86 |
| Applies to: | Dream Seeker |
|
| Status: |
Not a bug
This is not a bug. It may be an incorrect use of syntax or a limitation in the software. For further discussion on the matter, please consult the BYOND Developer forums.
|
|
|
Descriptive Problem Summary:
Click() doesn't get called for atoms if atom's location is null.
Numbered Steps to Reproduce Problem:
Download Demo, compile and run. Click on the mob on the grid - nothing happens. Remove comment from "P.loc = locate(1,1,1)" in main.dm, compile and run again, now clicking mob works.
Demo for reproduction:
http://dl.dropbox.com/u/2637453/demo_src.zip
Expected Results:
Click() to be called.
Actual Results:
Click() doesn't get called.
Does the problem occur:
Every time? Or how often?
Everytime.
In other user accounts?
Yes.
On other computers?
Most likely.
When does the problem NOT occur?
When mob (or atom) has location.
Workarounds:
Assign some location.
|
What you describe sounds exactly like it is being garbage collected, due to lacking reference in the first case, and on the second case of having an actual location, would gain a reference and thus persist.