Codechange: Store custom station layouts in a map instead of nested vectors. (#12898)
commitff972ec4ffddf6b8ac62614144f106e4bc9a4665
authorPeter Nelson <peter1138@openttd.org>
Wed, 14 Aug 2024 18:58:56 +0000 (14 19:58 +0100)
committerGitHub <noreply@github.com>
Wed, 14 Aug 2024 18:58:56 +0000 (14 19:58 +0100)
tree4d5e182647fc9f5bf44d48ed103eb461f2373177
parent39465d7f5c5e2c3cebda8187e8416138a07599a4
Codechange: Store custom station layouts in a map instead of nested vectors. (#12898)

The map key is the platforms and length combined. This simplifies allocation and searching for layouts.
src/newgrf.cpp
src/newgrf_station.h
src/station_cmd.cpp