The switch proc prioritizes ranges over single values, against what most coders would expect. I'll give code examples.
Code Snippet (if applicable) to Reproduce Problem:
switch(5)
if(4 to 6)
world.log << "Range is prioritized"
if(5)
world.log << "Single value is prioritized"
Unaffected by order, result is the same:
switch(5)
if(5)
world.log << "Single value is prioritized"
if(4 to 6)
world.log << "Range is prioritized"
Expected Results:
An output of "Single value is prioritized"
Actual Results:
An output of "Range is prioritized"
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 have not tested beyond 512 and 513, in both of which it behaves in this way, and am not aware if it ever worked differently.