[Widelands-cvs] SF.net SVN: widelands:[3235] trunk/src/game.cc
Status: Beta
Brought to you by:
sirver
From: <nas...@us...> - 2008-07-31 19:39:14
|
Revision: 3235 http://widelands.svn.sourceforge.net/widelands/?rev=3235&view=rev Author: nasenbaer_peter Date: 2008-07-31 19:39:09 +0000 (Thu, 31 Jul 2008) Log Message: ----------- Small fix to allow loading of S2 maps as scenario (won't change behaviour of game, as no scripts are loaded, but at least widelands won't crash anymore ;-) ) Modified Paths: -------------- trunk/src/game.cc Modified: trunk/src/game.cc =================================================================== --- trunk/src/game.cc 2008-07-31 18:43:52 UTC (rev 3234) +++ trunk/src/game.cc 2008-07-31 19:39:09 UTC (rev 3235) @@ -235,8 +235,7 @@ set_map(new Map); - FileSystem* fs = g_fs->MakeSubFileSystem(mapname); - Map_Loader* maploader = new WL_Map_Loader(*fs, &map()); + Map_Loader* maploader = map().get_correct_loader(mapname); try { UI::ProgressWindow loaderUI; GameTips tips (loaderUI); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |