Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0001991Dwarf FortressDwarf Mode -- Jobs, Activity Zonespublic2010-05-20 05:082015-01-11 07:34
ItchyBeard 
Footkerchief 
normaltrivialalways
confirmedopen 
amd64Windows7
0.31.04 
 
0001991: Roads occlude zone designations unless cursor is over zone
If you create a zone (e.g. garbage dump) and then build a road on top of the zoned area, the parts of the zone which are covered by the road are not visible unless the cursor is present inside the zone boundries.

If the road existed before the zone was designated, this does not occur.
1. Zone an area. (i)
2. Build a paved road on top of the zoned area. (b-o)
3. "i" -> zone does not appear unless cursor is within zone boundaries.
No tags attached.
Issue History
2010-05-20 05:08ItchyBeardNew Issue
2010-05-20 09:52FootkerchiefTag Attached: inten
2010-05-20 09:52FootkerchiefTag Detached: inten
2010-05-20 09:52FootkerchiefTag Attached: Intentional?
2010-05-20 22:42ItchyBeardNote Added: 0007121
2010-05-21 01:13FootkerchiefTag Detached: Intentional?
2015-01-11 02:14ptb_ptbNote Added: 0031870
2015-01-11 02:37ptb_ptbNote Edited: 0031870bug_revision_view_page.php?bugnote_id=0031870#r12773
2015-01-11 07:34FootkerchiefAssigned To => Footkerchief
2015-01-11 07:34FootkerchiefStatusnew => confirmed

Notes
(0007121)
ItchyBeard   
2010-05-20 22:42   
Regarding the "Intentional?" tag - this won't be intentional, though it may be an implementation artefact. If I build a road on top of a zone, the zone still exists and should be displayed - not hidden by the road.

There should be no difference between building a road and then designating a zone, and designating a zone and then building a road. They should be equivalent, however currently one displays differently to the other. I have no idea whether it makes a functional difference, but it shouldn't.

As it is currently you can end up with a zone *under* a road which makes no sense and could lead to some very strange behaviour (e.g. an active dump zone you can't see). To be clear, when I say 'zone' I mean 'Activity Zone', e.g. Dump zones, Water collection, Hospitals, etc.

I am assuming based on the observed behaviour that when things are drawn, they are drawn in order of creation based on some internal ID. As such, the order of creation for roads/zones matters for display purposes when it really shouldn't. The solution would be to draw all zones later in the drawing process (probably as a separate pass).

And yes, I know this is a really trivial bug ;).
(0031870)
ptb_ptb   
2015-01-11 02:14   
(edited on: 2015-01-11 02:37)
Still present in DF 0.40.23

Save file: http://dffd.wimbli.com/file.php?id=10422 [^]