summaryrefslogtreecommitdiff
path: root/.dorpsgek.yml
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-12-10 22:41:36 +0100
committerMichael Lutz <michi@icosahedron.de>2021-12-16 22:28:32 +0100
commitafc3d71fd080aab6a7c8d852016fb18bab5dd5d5 (patch)
tree7eb28657ae11a35bbd6c29c93374cddcae04c6f3 /.dorpsgek.yml
parentc521b965bdad1a060f55a1292381c6dd033b99d2 (diff)
downloadopenttd-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 '.dorpsgek.yml')
0 files changed, 0 insertions, 0 deletions