Wincondition artifacts could be choosen if no artifacts are available in map
Bug #1525706 reported by
kaputtnik
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Seen in r7669.
Steps to reproduce:
1. Start editor
2. Place a player
3. Save the map
4. Start a game and chose the previous saved map
Result: Win condition artifact could be chosen.
The tag "artifacts" is always stored in the "elemental" file of the map.
Related branches
lp:~widelands-dev/widelands/bug-1525706-artifacts
- TiborB: Approve
- kaputtnik (community): Approve (testing)
- SirVer: Needs Fixing
-
Diff: 49 lines (+10/-7)3 files modifiedsrc/editor/ui_menus/editor_main_menu_save_map.cc (+1/-1)
src/logic/map.cc (+6/-5)
src/logic/map.h (+3/-1)
Changed in widelands: | |
milestone: | none → build19-rc1 |
Changed in widelands: | |
assignee: | nobody → GunChleoc (gunchleoc) |
status: | Confirmed → In Progress |
Changed in widelands: | |
status: | In Progress → Fix Committed |
assignee: | GunChleoc (gunchleoc) → nobody |
Changed in widelands: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I can confirm this in r7662. Placing a player is not even necessary. There seems to be no way to get rid of the "artifacts" tag in the elemental file.
I am quite sure that this is a regression because when the feature was implemented, the win condition could only be chosen for maps with artifacts.