Changeset - r10152:a4ff3c5853f1
[Not reviewed]
master
0 1 0
smatz - 16 years ago 2008-09-15 23:50:12
smatz@openttd.org
(svn r14339) -Fix (r13731): crash when loading the intro game failed
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/openttd.cpp
Show inline comments
 
@@ -363,10 +363,12 @@ static void LoadIntroGame()
 
	if (SaveOrLoad("opntitle.dat", SL_LOAD, DATA_DIR) != SL_OK) {
 
		GenerateWorld(GW_EMPTY, 64, 64); // if failed loading, make empty world.
 
		WaitTillGeneratedWorld();
 
		SetLocalPlayer(PLAYER_SPECTATOR);
 
	} else {
 
		SetLocalPlayer(PLAYER_FIRST);
 
	}
 

	
 
	_pause_game = 0;
 
	SetLocalPlayer(PLAYER_FIRST);
 
	_cursor.fix_at = false;
 
	MarkWholeScreenDirty();
 

	
0 comments (0 inline, 0 general)