Bug #4458

hide_sprite with value 0 is incorrectly hidden

Added by andythenorth over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:2012-10-28
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-
Target version:-

Description

Docs imply (I could be misunderstanding them) that a sprite should be shown for following case in spritelayout:

                hide_sprite: 0;

Sprite is unexpectedly hidden for this case. Might be an nml bug, or a docs clarification needed,

Reproducible with nml r2043.

Attached patch against FIRS r3095 reproduces the issue reliably for me. Building sprites will be incorrectly hidden for a number of industries including Bauxite Mine, Hotel, or Stockyard.

hide_sprite_issue.diff Magnifier (977 Bytes) andythenorth, 2012-10-28 11:08

Associated revisions

Revision 2044:5859d452b668
Added by yexo over 5 years ago

Fix #4458: applying operator ! to a constant number didn't work

Revision 2044:5859d452b668
Added by yexo over 5 years ago

Fix #4458: applying operator ! to a constant number didn't work

History

#1 Updated by andythenorth over 5 years ago

  • Description updated (diff)

#2 Updated by yexo over 5 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset 5859d452b668.

Also available in: Atom PDF