diff options
author | truelight <truelight@openttd.org> | 2005-01-05 14:39:48 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-01-05 14:39:48 +0000 |
commit | 523a6a1cffd1a7567453835500f387f3499b10a2 (patch) | |
tree | 0321af6b507ef39cda02042c21cc3ae5e417a162 /command.h | |
parent | f1e9fdf76d951dec71c330f12783917cae464160 (diff) | |
download | openttd-523a6a1cffd1a7567453835500f387f3499b10a2.tar.xz |
(svn r1389) -Add: [Network] Added packet protection. No longer a client or server
reads beyond the size of the packet
-Fix: [Network] A server no longer crashes when a client sends an
invalid DoCommand, but drops the client instead.
Diffstat (limited to 'command.h')
-rw-r--r-- | command.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -182,6 +182,7 @@ enum { int32 DoCommand(int x, int y, uint32 p1, uint32 p2, uint32 flags, uint procc); int32 DoCommandByTile(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc); +bool IsValidCommand(int cmd); int32 GetAvailableMoneyForCommand(); #endif /* COMMAND_H */ |