diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-12-10 22:41:36 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-12-16 22:28:32 +0100 |
commit | afc3d71fd080aab6a7c8d852016fb18bab5dd5d5 (patch) | |
tree | 7eb28657ae11a35bbd6c29c93374cddcae04c6f3 /src/waypoint_func.h | |
parent | c521b965bdad1a060f55a1292381c6dd033b99d2 (diff) | |
download | openttd-afc3d71fd080aab6a7c8d852016fb18bab5dd5d5.tar.xz |
Codechange: Don't generate CommandPacket unpack functions for invalid 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.
Diffstat (limited to 'src/waypoint_func.h')
0 files changed, 0 insertions, 0 deletions