Andreas Breitschopp has proposed merging lp:~ab-tools/widelands/windows-multiplayer-bug into lp:widelands.
Requested reviews: Widelands Developers (widelands-dev) Related bugs: #659884 problem with network savegame loading under windows https://bugs.launchpad.net/bugs/659884 Fixes the assigned bug. See bug description/comments for more details. -- https://code.launchpad.net/~ab-tools/widelands/windows-multiplayer-bug/+merge/42262 Your team Widelands Developers is requested to review the proposed merge of lp:~ab-tools/widelands/windows-multiplayer-bug into lp:widelands.
=== modified file 'src/network/netclient.cc' --- src/network/netclient.cc 2010-11-21 11:44:22 +0000 +++ src/network/netclient.cc 2010-11-30 16:12:16 +0000 @@ -626,7 +626,11 @@ file->filename = path; file->md5sum = md5; +#ifdef WIN32 + path.resize(path.rfind('\\', path.size() - 2)); +#else path.resize(path.rfind('/', path.size() - 2)); +#endif g_fs->EnsureDirectoryExists(path); break;
_______________________________________________ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp