Darkness renders strangely with non square values
Numbered Steps to Reproduce Problem:
1. Set view to a non square value (10x5)
2. Be near darkness
3. Darkness is way shifted up
Code Snippet (if applicable) to Reproduce Problem:
mob
step_size = 8
verb
change_view()
set name = "change view to any value"
usr.client.view = input(usr, "Change your view range") as text
change_view_set_squared()
set name = "change view to a square value"
usr.client.view = "5x5"
change_view_set_nonsquared()
set name = "change view to a non square value"
usr.client.view = "7x5"
icon_state = "mob"
atom
icon = 'icons.dmi'
icon_state = "turf"
Expected Results:
Things render as they did
Actual Results:
The entire top half of my view is black
Does the problem occur:
Every time? Yes
In other games? Yes
In other user accounts? yes
On other computers? yes
When does the problem NOT occur?
Any usage of a square view value, like 15x15
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.)
515.1621 and lower
It's too late now to make any further changes so I'll have to get on this when I deal with other view changes in the new year.