diff options
author | rubidium <rubidium@openttd.org> | 2011-12-18 18:37:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-12-18 18:37:54 +0000 |
commit | fefe22b4aa5194af499763d3cc4d4dc19116fa92 (patch) | |
tree | 5b2671aa4bc5b68584d962d11a8ceab705ad6321 /src/network/core/packet.h | |
parent | 6ae8cac4320e098c1fa628a3afd5c090aacc80a2 (diff) | |
download | openttd-fefe22b4aa5194af499763d3cc4d4dc19116fa92.tar.xz |
(svn r23590) -Codechange: make the string validation settings better expandable
Diffstat (limited to 'src/network/core/packet.h')
-rw-r--r-- | src/network/core/packet.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/core/packet.h b/src/network/core/packet.h index ef9da056a..7f344d017 100644 --- a/src/network/core/packet.h +++ b/src/network/core/packet.h @@ -16,6 +16,7 @@ #include "config.h" #include "core.h" +#include "../../string_type.h" #ifdef ENABLE_NETWORK @@ -83,7 +84,7 @@ public: uint16 Recv_uint16(); uint32 Recv_uint32(); uint64 Recv_uint64(); - void Recv_string(char *buffer, size_t size, bool allow_newlines = false); + void Recv_string(char *buffer, size_t size, StringValidationSettings settings = SVS_REPLACE_WITH_QUESTION_MARK); }; #endif /* ENABLE_NETWORK */ |