[0.15.10] More weirdness with camera.zoom and .surface_index
Posted: Mon May 15, 2017 6:15 pm
Follow-up to this bug.
When you write to a camera's .surface_index parameter, the camera may still show the entities of the old surface above the tiles of the new surface. This may have something to do with writing to the zoom level as well.
To reproduce: In the attached save, hover quickly between two factory buildings. Changing your GUI scale will affect which pairs of factory buildings show this error!
Here's the relevant mod code.
When you write to a camera's .surface_index parameter, the camera may still show the entities of the old surface above the tiles of the new surface. This may have something to do with writing to the zoom level as well.
To reproduce: In the attached save, hover quickly between two factory buildings. Changing your GUI scale will affect which pairs of factory buildings show this error!
Here's the relevant mod code.