summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2007-02-01 12:51:10 +0000
committerDarkvater <darkvater@openttd.org>2007-02-01 12:51:10 +0000
commit3c2cb4871ebef41362b401ddd300445fdb11e8be (patch)
treea608b39bb4ef180225f221d0510f390c4c00fd6a /src/openttd.cpp
parent74c842a3ef095688b81c48d28af935e98fa7f553 (diff)
downloadopenttd-3c2cb4871ebef41362b401ddd300445fdb11e8be.tar.xz
(svn r8507) -Codechange/Feature: Don't remove player-owned property on-load in the scenario editor. Add a button to the landscape window to do this.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 1d71d042b..d60a63643 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -70,8 +70,6 @@ void IncreaseDate(void);
void DoPaletteAnimations(void);
void MusicLoop(void);
void ResetMusic(void);
-void InitializeStations(void);
-void DeleteAllPlayerStations(void);
extern void SetDifficultyLevel(int mode, GameOptions *gm_opt);
extern Player* DoStartupNewPlayer(bool is_ai);
@@ -840,23 +838,10 @@ void SwitchMode(int new_mode)
case SM_LOAD_SCENARIO: { /* Load scenario from scenario editor */
if (SafeSaveOrLoad(_file_to_saveload.name, _file_to_saveload.mode, GM_EDITOR)) {
- Player *p;
-
_opt_ptr = &_opt;
SetLocalPlayer(OWNER_NONE);
- _generating_world = true;
- /* Delete all players */
- FOR_ALL_PLAYERS(p) {
- if (p->is_active) {
- ChangeOwnershipOfPlayerItems(p->index, PLAYER_SPECTATOR);
- p->is_active = false;
- }
- }
- _generating_world = false;
_patches_newgame.starting_year = _cur_year;
- // delete all stations owned by a player
- DeleteAllPlayerStations();
} else {
ShowErrorMessage(INVALID_STRING_ID, STR_4009_GAME_LOAD_FAILED, 0, 0);
}