OpenTTD/src/game
Patric Stout 4319d31036 Fix #6468: don't store version of AIs-started-via-console in name
You can do: "startai myai.3", which starts version 3 of "myai".
This is very useful for testing save/load code between different
versions of your AI.

However, when using this syntax, the AI got saved as "myai.3" as
name of the AI, instead of "myai". This caused several problems,
like indicating to the user the AI could not be found, but still
load the AI. But in all cases, the AI never got the chance to
load the saved data, making the whole reason this exists pointless.

By splitting the name and version already in the console command,
the code becomes simpler and AIs started this way now follow the
normal flow after initialization.
2020-12-25 17:03:44 +01:00
..
CMakeLists.txt Add: introduce CMake for project management 2020-06-05 19:36:05 +02:00
game.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
game_config.cpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
game_config.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
game_core.cpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
game_info.cpp Codechange: Simplify CheckAPIVersion() 2020-02-14 21:43:21 +01:00
game_info.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
game_instance.cpp Change: rewrote squirrel_export in CMake 2020-07-16 00:53:26 +02:00
game_instance.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
game_scanner.cpp Fix #6468: don't store version of AIs-started-via-console in name 2020-12-25 17:03:44 +01:00
game_scanner.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
game_text.cpp Codechange: Store GS lang texts in std::strings. 2020-05-21 20:02:34 +02:00
game_text.hpp Codechange: Store GS lang texts in std::strings. 2020-05-21 20:02:34 +02:00