diff options
author | Patric Stout <truebrain@openttd.org> | 2020-12-25 15:22:40 +0100 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2020-12-25 17:03:44 +0100 |
commit | 4319d31036a243cce860511a1b543461c9677f41 (patch) | |
tree | f0418e108141886954017e8aad7e731657a7cc08 /src/newgrf_canal.h | |
parent | 29e3331055a784ead663b62a67ef13b0112af1df (diff) | |
download | openttd-4319d31036a243cce860511a1b543461c9677f41.tar.xz |
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.
Diffstat (limited to 'src/newgrf_canal.h')
0 files changed, 0 insertions, 0 deletions