Mercurial > hg > openttd
diff src/openttd.cpp @ 10152:2590e56e45f3 draft
(svn r14339) -Fix (r13731): crash when loading the intro game failed
author | smatz <smatz@openttd.org> |
---|---|
date | Mon, 15 Sep 2008 23:50:12 +0000 (2008-09-15) |
parents | dabc02761232 |
children | 630fa8449fc4 |
line wrap: on
line diff
--- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -363,10 +363,12 @@ 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();