diff options
author | rubidium <rubidium@openttd.org> | 2009-01-18 13:12:57 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-18 13:12:57 +0000 |
commit | 1bc8e3f536276bf37a246f1e747cb7563c7e20dc (patch) | |
tree | 6d76af52262054593ff7eea5e0e4a6d516cc0935 /src/network/network_content.cpp | |
parent | 2ce42873d1c8f259f1bed70ace5d52ce66e5d852 (diff) | |
download | openttd-1bc8e3f536276bf37a246f1e747cb7563c7e20dc.tar.xz |
(svn r15135) -Fix/Change: allow str_validate (part of receiving strings from the network) to pass newlines instead of replacing them with question marks, but only when asked to do so.
Diffstat (limited to 'src/network/network_content.cpp')
-rw-r--r-- | src/network/network_content.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_content.cpp b/src/network/network_content.cpp index d49e09282..26a92324f 100644 --- a/src/network/network_content.cpp +++ b/src/network/network_content.cpp @@ -53,7 +53,7 @@ DEF_CONTENT_RECEIVE_COMMAND(Client, PACKET_CONTENT_SERVER_INFO) p->Recv_string(ci->name, lengthof(ci->name)); p->Recv_string(ci->version, lengthof(ci->name)); p->Recv_string(ci->url, lengthof(ci->url)); - p->Recv_string(ci->description, lengthof(ci->description)); + p->Recv_string(ci->description, lengthof(ci->description), true); ci->unique_id = p->Recv_uint32(); for (uint j = 0; j < sizeof(ci->md5sum); j++) { |