summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-12-28Update: Translations from eintstranslators
portuguese (brazilian): 2 changes by Vimerum
2021-12-22Update: Translations from eintstranslators
czech: 6 changes by vladoschreiner hungarian: 5 changes by pnpBrumi
2021-12-22Doc: use only double quotes for cmake command line example in COMPILING.md ↵benda
(#9758) While powershell happily accepts single quotes, it's not the case for cmd.
2021-12-22Doc: fix broken links to Open{GFX,SFX,MSX} in README.md (#9759)trautamaki
2021-12-21Update: Translations from eintstranslators
norwegian (bokmal): 4 changes by Anolitt
2021-12-20Fix #9756: Network command unpack proc was not generated in all cases.Michael Lutz
The case where the callback proc takes all command results but not any of the command parameters was not handled properly.
2021-12-20Fix: Suppress vehicle age warnings for stopped vehiclesTyler Trahan
2021-12-20Change: [Admin] Bump admin port protocol due to command changes.Michael Lutz
docs/admin_network.md promised that information in an admin packet is never removed. It does allow the possibility of using a new packet type for changed data in combination with a bump of the admin port version. As the recent command handling changes modified the contents of ADMIN_PACKET_SERVER_CMD_LOGGING, do exactly that.
2021-12-20Codechange: [Script] Prettify squirrel call helpers by using C++17.Michael Lutz
2021-12-19Fix #9735: Fix OrderBackup::Reset in non-GUI caseJonathan G Rennison
2021-12-19Cleanup #9725: Clean up Doxygen docs and fix typo. (#9753)Joan Josep
2021-12-16Codechange: Don't generate CommandPacket unpack functions for invalid ↵Michael Lutz
cmd/callback combinations. If the arguments of the callback proc don't match with the command parameters, we can't do the proper command execution anyway. As such, don't even generate an unpack function in the first place, saving a bit of unnecessary code bloat. Validate on receive that the cmd/callback combination is supported, rejecting clients that try to send invalid values.
2021-12-16Codechange: Don't use a global for the terrforming error tile.Michael Lutz
2021-12-16Codechange: Don't use a global for the 'not enough cash' message.Michael Lutz
2021-12-16Codechange: Don't use globals for return values from vehicle command procs.Michael Lutz
2021-12-16Codechange: Don't use globals for story/goal/sign/group command proc return ↵Michael Lutz
values.
2021-12-16Codechange: Add support for additional command result values.Michael Lutz
2021-12-16Codechange: Pass unpacked command arguments to command callbacks (except ↵Michael Lutz
Script).
2021-12-16Codechange: Template the command callback function type to allow unpacked ↵Michael Lutz
arguments.
2021-12-16Codechange: Un-bitstuff all remaining commands.Michael Lutz
2021-12-16Codechange: Un-bitstuff the remaining on-map commands.Michael Lutz
2021-12-16Codechange: Un-bitstuff landscape commands.Michael Lutz
2021-12-16Codechange: Un-bitstuff goal and story page commands.Michael Lutz
2021-12-16Codechange: Un-bitstuff town-related commands.Michael Lutz
2021-12-16Codechange: Un-bitstuff group and autoreplace commands.Michael Lutz
2021-12-16Codechange: Un-bitstuff remaining transport infrastructure commands.Michael Lutz
2021-12-16Codechange: Un-bitstuff rail commands.Michael Lutz
2021-12-16Codechange: Un-bitstuff station/depot/waypoint commands.Michael Lutz
2021-12-16Codechange: Un-bitstuff vehicle/engine commands.Michael Lutz
2021-12-16Codechange: Un-bitstuff timetable commands.Michael Lutz
2021-12-16Codechange: Un-bitstuff order commands.Michael Lutz
2021-12-16Codechange: Add DoCommand::Post specialization for commands that take no ↵Michael Lutz
TileIndex. This adds a new Post overloads that still take a TileIndex which is used to place any error windows or text effects.
2021-12-16Codechange: Un-bitstuff commands taking a ClientID (i.e. CMD_CLIENT_ID).Michael Lutz
2021-12-16Codechange: Template DoCommandPInternal.Michael Lutz
2021-12-16Codechange: Template script command calls.Michael Lutz
2021-12-16Codechange: Pass additional data as byte stream to command callbacks.Michael Lutz
2021-12-16Codechange: Template DoCommandP to automagically reflect the parameters of ↵Michael Lutz
the command proc. When finished, this will allow each command handler to take individually different parameters, obliviating the need for bit-packing.
2021-12-16Codechange: Template DoCommand to automagically reflect the parameters of ↵Michael Lutz
the command proc. When finished, this will allow each command handler to take individually different parameters, obliviating the need for bit-packing.
2021-12-16Codechange: Use wrapper struct to automatically manage command depth tracking.Michael Lutz
2021-12-16Codechange: Use lambdas instead of CommandContainer to manage station picker ↵Michael Lutz
commands.
2021-12-16Change: [Network] Transfer command data as serialized byte stream without ↵Michael Lutz
fixed structure. The data will be transmitted as the length followed by the serialized data. This allows the command data to be different for every command type in the future.
2021-12-16Codechange: Make TileIndex a "strong" typedef to give it a distinct type.Michael Lutz
This is accomplished by changing it to a single member struct with the appropriate operator overloads to make it all work with not too much source modifications.
2021-12-16Codechange: Align parameter order of command callbacks to command handlers.Michael Lutz
2021-12-16Codechange: Move command callback declarations to the cmd header files.Michael Lutz
2021-12-16Codechange: Move flags in CommandProc in front of the command arguments.Michael Lutz
2021-12-16Codechange: Let the compile generate the master command table out of ↵Michael Lutz
templated command traits. This is using a non-intrusive type-traits like templated system, which allows compile-time validation that the command table and the command enum match up.
2021-12-16Codechange: Declare our custom enum operators as constexpr.Michael Lutz
2021-12-16Codechange: Untangle command code, flags and error string for DoCommand*.Michael Lutz
2021-12-16Codechange: Move command arguments to the back of the networked command ↵Michael Lutz
function calls.
2021-12-16Codechange: Move command arguments to the back of the DoCommand function call.Michael Lutz