TogglePower tag on buildings is being ignored

Bug #896076 reported by FS-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ares
Fix Released
Medium
AlexB

Bug Description

When a Toggle power "SW" is used to disable buildings TogglePower tag is ignored & works depending of other factors.

Now by default buildings are hardcoded to "TogglePower=yes" if:
  "Power=" < 0
  "Power=" >= 0 AND "Powered=true"

If buildings have "Power=" >= 0 AND Powered=false (or not have the tag "Powered=") buildings are hardcoded as "TogglePower=no".

##### ADDITIONAL INFORMATION #####
I think that TogglePower=no should ignore negative values for "Power" & "Powered"=true tags.

Revision history for this message
AlexB (alexander-b) wrote :

The new Toggle Power keyboard command should fix this issue. It properly goes into toggle power mode, which supports cursors and the TogglePower tag. No changes to the way Power= and Powered= tags are used, though.

Changed in ares:
assignee: nobody → AlexB (alexander-b)
milestone: none → 0.8
status: New → Fix Committed
AlexB (alexander-b)
Changed in ares:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.