If the client's screen size is changed by adding an atom to it with a screen_loc that is out of bounds, atoms with the appearance_flags KEEP_TOGETHER are displayed incorrectly when the game window is too small to display the entire map.
Resizing the window to display the entire map will display the icon correctly. Does not occur with icons stretching to fit.
Numbered Steps to Reproduce Problem:
1. Create mob atom with appearance_flags set to KEEP_TOGETHER
2. Add an overlay to the mob
3. Add an object with screen_loc set to "0,0" to the client's screen.
4. Set Icons to 32x32 in the game window
5. Resize the game window to be smaller than the map
Code Snippet (if applicable) to Reproduce Problem:
mob
icon='icon.dmi'
appearance_flags=KEEP_TOGETHER
verb/overit()
src.overlays+='overlay.dmi'
var/obj/O=new/obj
O.screen_loc="0,0"
src.client.screen+=O//remove this line (or the appearance flag) and the mob will display as expected.
Expected Results:
Atom is displayed and scaled relative to icon sizing in the map
Actual Results:
Atom scaling is affected by the size of the game window
Does the problem occur:
Every time? Or how often? 100% with these steps and settings.
In other games? Yes
In other user accounts? Yes
On other computers? Yes
When does the problem NOT occur?
When the map display is set to stretch to fit.
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.) Untested in other versions.
Workarounds:
None.