Merge lp:~widelands-dev/widelands/bug-1822437-missing-savegames into lp:widelands

Proposed by GunChleoc
Status: Merged
Merged at revision: 9034
Proposed branch: lp:~widelands-dev/widelands/bug-1822437-missing-savegames
Merge into: lp:widelands
Diff against target: 24 lines (+4/-2)
1 file modified
src/wui/load_or_save_game.cc (+4/-2)
To merge this branch: bzr merge lp:~widelands-dev/widelands/bug-1822437-missing-savegames
Reviewer Review Type Date Requested Status
hessenfarmer test Approve
Review via email: mp+365319@code.launchpad.net

Commit message

Show all savegame files in save game menu.

Description of the change

Multiplayer savegame files are missing in the save game menu. This fixes it.

To post a comment you must log in.
Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 4660. State: failed. Details: https://travis-ci.org/widelands/widelands/builds/513575340.
Appveyor build 4447. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_bug_1822437_missing_savegames-4447.

Revision history for this message
hessenfarmer (stephan-lutz) wrote :

tested the branch
multiplayer savegames are now shown in both savegame menus
found no issues

@bunnybot merge

review: Approve (test)
Revision history for this message
GunChleoc (gunchleoc) wrote :

Thank you very much for the review :)

Revision history for this message
bunnybot (widelandsofficial) wrote :

Refusing to merge, since Travis is not green. Use @bunnybot merge force for merging anyways.

Travis build 4660. State: failed. Details: https://travis-ci.org/widelands/widelands/builds/513575340.

Revision history for this message
hessenfarmer (stephan-lutz) wrote :

travis failure is transient

@bunnybot merge force

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/wui/load_or_save_game.cc'
2--- src/wui/load_or_save_game.cc 2019-02-23 11:00:49 +0000
3+++ src/wui/load_or_save_game.cc 2019-03-30 20:28:33 +0000
4@@ -385,8 +385,9 @@
5 SavegameData gamedata;
6
7 std::string savename = gamefilename;
8- if (filetype_ == FileType::kReplay)
9+ if (filetype_ == FileType::kReplay) {
10 savename += kSavegameExtension;
11+ }
12
13 if (!g_fs->file_exists(savename.c_str())) {
14 continue;
15@@ -400,7 +401,8 @@
16
17 gamedata.gametype = gpdp.get_gametype();
18
19- if (filetype_ != FileType::kReplay) {
20+ // Skip singleplayer games in multiplayer mode and vice versa
21+ if (filetype_ != FileType::kReplay && filetype_ != FileType::kShowAll) {
22 if (filetype_ == FileType::kGameMultiPlayer) {
23 if (gamedata.gametype == GameController::GameType::kSingleplayer) {
24 continue;

Subscribers

People subscribed via source and target branches

to status/vote changes: