Bug #18582, was updated on 2012-Apr-20 14:58
Here is a current snapshot of the bug.
Project: LinCityNG
Category: None
Status: Open
Resolution: Works For Me
Bug Group: None
Priority: 5
Submitted by: aaporantalainen
Assigned to : none
Summary: atch: Fasten startup, not loading resume game automatically
Details: diff --git a/src/lincity-ng/MainLincity.cpp
b/src/lincity-ng/MainLincity.cpp
index 37f968c..d32876c 100644
--- a/src/lincity-ng/MainLincity.cpp
+++ b/src/lincity-ng/MainLincity.cpp
@@ -176,11 +176,14 @@ void initLincity()
screen_full_refresh ();
+ //Do not resume at this point, but when user press continue
+ /*
//load current game if it exists
if( ! loadCityNG( std::string( "9_currentGameNG.scn" ) ) ) {
//create a new City with village just in case
new_city( &main_screen_originx, &main_screen_originy, 1 );
}
+ */
}
diff --git a/src/lincity-ng/MainMenu.cpp b/src/lincity-ng/MainMenu.cpp
index d1a32d6..e976418 100644
--- a/src/lincity-ng/MainMenu.cpp
+++ b/src/lincity-ng/MainMenu.cpp
@@ -568,6 +568,11 @@ void
MainMenu::continueButtonClicked(Button* )
{
getSound()->playSound( "Click" );
+ //resume/load current game
+ if( ! loadCityNG( std::string( "9_currentGameNG.scn" ) ) ) {
+ //Create a new City with village if no previous game found
+ new_city( &main_screen_originx, &main_screen_originy, 1 );
+ }
quitState = INGAME;
running = false;
}
Follow-Ups:
Date: 2012-Aug-06 22:09
By: wolfgangb
Comment:
With the suggested fix the game would be loaded from disc every time you
continue after adjusting something in the main menu. Does that slow things down
on your platform? I there really any observable additional delay on startup?
-------------------------------------------------------
For detailed info, follow this link:
http://developer.berlios.de/bugs/?func=detailbug&bug_id=18582&group_id=2929
_______________________________________________
Lincity-ng-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/lincity-ng-devel