diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-11-26 23:58:27 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-11-29 22:08:25 +0200 |
commit | 8ccdd3bdb43b313d729279dbbb267528fc191615 (patch) | |
tree | 533a1c7f80e3b6d6b7aa806c0292d0e9df193893 /src/test.cpp | |
parent | 23913f26cd0a075505b7e74df6b93584288afb92 (diff) | |
download | minetest-8ccdd3bdb43b313d729279dbbb267528fc191615.tar.xz |
Ranged support of protocol version on server side
Diffstat (limited to 'src/test.cpp')
-rw-r--r-- | src/test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test.cpp b/src/test.cpp index 52782fa36..bc0692a78 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -41,6 +41,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "util/numeric.h" #include "util/serialize.h" #include "noise.h" // PseudoRandom used for random data for compression +#include "clientserver.h" // LATEST_PROTOCOL_VERSION /* Asserts that the exception occurs @@ -324,7 +325,7 @@ struct TestNodedefSerialization: public TestBase f.tiledef[i].name = "default_stone.png"; f.is_ground_content = true; std::ostringstream os(std::ios::binary); - f.serialize(os); + f.serialize(os, LATEST_PROTOCOL_VERSION); verbosestream<<"Test ContentFeatures size: "<<os.str().size()<<std::endl; std::istringstream is(os.str(), std::ios::binary); ContentFeatures f2; |