Ctrl+destroying a flag with a building does not destroy the whole road
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Low
|
Unassigned |
Bug Description
Steps to reproduce:
- Start a new game.
- Build a road. Make sure it consists of at least three flags (it needn't be connected to the headquarters).
- (If you destroy one flag while pressing Ctrl, the whole road will be removed.) (1)
- Build a building at one end of the road.
- (If you destroy the building while pressing Ctrl, the confirmation will be skipped.) (2)
- Destroy the flag in front of the building while pressing Ctrl.
Expected result:
The building is destroyed without confirmation (2) and the road is destroyed up to the next junction (1).
Actual result:
(2) happens, but only one flag (the one you clicked on) is destroyed.
I think that is a bug because if I destroy a flag with Ctrl, I want the whole road to be removed. If I only want to destroy a building, I normally do this via the building menu. Furthermore, a road into empty land makes no sense.
Tested with r6549, but it migth appear since both (1) and (2) can be done with control.
Related branches
- Widelands Developers: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedsrc/wui/fieldaction.cc (+1/-1)
Changed in widelands: | |
status: | Confirmed → Fix Committed |
milestone: | none → build19-rc1 |
Changed in widelands: | |
status: | Fix Committed → Fix Released |
The behaviour is a bit weird: If you click normally on the "destroy flag" button and then Ctrl-click in the confirmation window, the entire road is destroyed. I agree that Ctrl-clicking the "destroy flag" button should destroy both the building and the entire road without confirmation.