* Fix warning about dungeongen.cpp memcpy()
* Fix unused variable in MapBlock::deSerializeNetworkSpecific()
* Fix unused variable a simpler way
void MapBlock::deSerializeNetworkSpecific(std::istream &is)
{
try {
- const u8 version = readU8(is);
- //if(version != 1)
- // throw SerializationError("unsupported MapBlock version");
+ readU8(is);
+ //const u8 version = readU8(is);
+ //if (version != 1)
+ //throw SerializationError("unsupported MapBlock version");
} catch(SerializationError &e) {
warningstream<<"MapBlock::deSerializeNetworkSpecific(): Ignoring an error"
#endif
if (dparams) {
- memcpy(&dp, dparams, sizeof(dp));
+ dp = *dparams;
} else {
// Default dungeon parameters
dp.seed = 0;