In issue 1996 call() was fixed to properly search for a procedure without replacing _ with spaces. However, it seems like hascall() is still using the old behavior, which is obviously an issue in using the fixed call() :(
Numbered Steps to Reproduce Problem:
Code Snippet (if applicable) to Reproduce Problem:
client/proc/__test()
client/New()
src << "Does __test exist? [hascall(src,"__test")]"
Expected Results:
For hascall() to return 1
Actual Results:
hascall() returns 0
Does the problem occur:
Every time
When does the problem NOT occur?
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.)
Workarounds:
Use set name in the procedure, or make sure that the call to hascall() has spaces instead of underscores.