ID:2904890
 
Resolved
Quick fix: A typo in some otherwise minor changes caused major view issues in some projects.
BYOND Version:515.1622
Operating System:Windows 11 Home
Web Browser:Chrome 120.0.0.0
Applies to:Dream Seeker
Status: Resolved (515.1623)

This issue has been resolved.
Descriptive Problem Summary:
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

Dang it. I thought I had changed only the var names and nothing else consequential. I even went through the changes carefully first.

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.
Lummox JR resolved issue with message:
Quick fix: A typo in some otherwise minor changes caused major view issues in some projects.