Fix a crash (assert) when client set serial version < 24 in INIT
authorLoic Blot <loic.blot@unix-experience.fr>
Mon, 26 Jan 2015 14:52:02 +0000 (15:52 +0100)
committerKahrl <kahrl@gmx.net>
Tue, 27 Jan 2015 15:55:25 +0000 (16:55 +0100)
commit80a7408e4d17e0e388f2d45fb90c5524a5dd7c89
tree3bc5f712406c07192c085c0825d90ab0ade8f1af
parenteeea454bff0cfcda495c20029a0246f63f14393e
Fix a crash (assert) when client set serial version < 24 in INIT

When SER_FMT_VER_LOWEST is set to zero, then the test is stupid in INIT because all client works. In mapblock we check if client's serialization version is < 24, but if client sent serialization version < 24 (15 for example) the server set it and tried to send nodes, then BOOM

To resolve the problem:
* Create a different CLIENT_MIN_VERSION to handle this problem
* Remove the exception
* Use an assert in case of bad developer code
src/mapblock.cpp
src/mapblock.h
src/serialization.h
src/server.cpp