Save game claims win condition is Scenario, even when it isn't
Bug #1201398 reported by
Hans Joachim Desserud
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Steps to reproduce:
1. Start a new game with a win condition like collectors or endless game.
2. Save said game.
3. Look at the save game in either the save or the load game dialog.
Expected result:
The win condition from step 1 should be listed.
Actual result:
For some reason they all list Scenario, no matter what I have selected.
Wondering if the translated names didn't match and trigger some default type, I tried switching the game to English which had the same results. When I browse the games listed in the load game dialog I notice older games list the correct win conditions.
widelands r6626 on Ubuntu 13.04.
Related branches
lp://staging/~widelands-dev/widelands/bug1201398
- SirVer: Approve
- Diff: 0 lines
lp://staging/~widelands-dev/widelands/bug-1201398
- TiborB: Approve
-
Diff: 373 lines (+69/-35)12 files modifiedscripting/win_conditions/collectors.lua (+8/-5)
scripting/win_conditions/defeat_all.lua (+7/-4)
scripting/win_conditions/endless_game.lua (+6/-3)
scripting/win_conditions/endless_game_fogless.lua (+7/-4)
scripting/win_conditions/territorial_lord.lua (+8/-5)
scripting/win_conditions/territorial_time.lua (+8/-5)
scripting/win_conditions/wood_gnome.lua (+8/-5)
src/logic/game.cc (+1/-0)
src/ui_fsmenu/launch_mpg.cc (+4/-1)
src/ui_fsmenu/launch_spg.cc (+4/-1)
src/ui_fsmenu/loadgame.cc (+4/-1)
src/wui/game_main_menu_save_game.cc (+4/-1)
Changed in widelands: | |
status: | Confirmed → Fix Committed |
milestone: | none → build18-rc1 |
Changed in widelands: | |
status: | Fix Committed → In Progress |
Changed in widelands: | |
status: | In Progress → Fix Committed |
Changed in widelands: | |
milestone: | build18-rc1 → build19-rc1 |
Changed in widelands: | |
assignee: | cghislai (charlyghislain) → GunChleoc (gunchleoc) |
status: | Confirmed → In Progress |
Changed in widelands: | |
status: | In Progress → Fix Committed |
Changed in widelands: | |
assignee: | GunChleoc (gunchleoc) → nobody |
Changed in widelands: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Indeed something is wrong with my code, sometimes the win condition is stored as the script name, sometimes as the translated name, i may have to check for version.
I will also allow showing current game info in the save dialog if no game is selected.