3 | --- console_cmds.cpp (revision 27582)
| 3 | --- src/saveload/ai_sl.cpp (revision 27582)
|
---|
4 | +++ console_cmds.cpp (working copy)
| 4 | +++ src/saveload/ai_sl.cpp (working copy)
|
---|
5 | @@ -34,6 +34,7 @@
| 5 | @@ -83,7 +83,7 @@
|
---|
6 | #include "gamelog.h"
| 6 | /* A random AI. */
|
---|
7 | #include "ai/ai.hpp"
| 7 | config->Change(NULL, -1, false, true);
|
---|
8 | #include "ai/ai_config.hpp"
| 8 | } else {
|
---|
9 | +#include "ai/ai_info.hpp"
| 9 | - config->Change(_ai_saveload_name, _ai_saveload_version, false, _ai_saveload_is_random);
|
---|
10 | #include "newgrf.h"
| 10 | + config->Change(_ai_saveload_name, -1, true, _ai_saveload_is_random);
|
---|
11 | #include "console_func.h"
| 11 | if (!config->HasScript()) {
|
---|
12 | #include "engine_base.h"
| 12 | /* No version of the AI available that can load the data. Try to load the
|
---|
13 | @@ -1171,6 +1172,9 @@
| 13 | * latest version of the AI instead. */
|
---|
| | 14 | Index: src/saveload/game_sl.cpp
|
---|
| | 15 | ===================================================================
|
---|
| | 16 | --- src/saveload/game_sl.cpp (revision 27582)
|
---|
| | 17 | +++ src/saveload/game_sl.cpp (working copy)
|
---|
| | 18 | @@ -75,7 +75,7 @@
|
---|
| | 19 | GameConfig *config = GameConfig::GetConfig(GameConfig::SSS_FORCE_GAME);
|
---|
| | 20 | if (StrEmpty(_game_saveload_name)) {
|
---|
| | 21 | } else {
|
---|
| | 22 | - config->Change(_game_saveload_name, _game_saveload_version, false, _game_saveload_is_random);
|
---|
| | 23 | + config->Change(_game_saveload_name, -1, true, _game_saveload_is_random);
|
---|