*/
MapBlock::MapBlock(Map *parent, v3s16 pos, IGameDef *gamedef, bool dummy):
- heat(0),
- humidity(0),
- weather_update_time(0),
m_parent(parent),
m_pos(pos),
m_gamedef(gamedef),
reallocate();
#ifndef SERVER
- //mesh_mutex.Init();
mesh = NULL;
#endif
}
if(net_proto_version >= 21){
int version = 1;
writeU8(os, version);
- writeF1000(os, heat);
- writeF1000(os, humidity);
+ writeF1000(os, 0); // deprecated heat
+ writeF1000(os, 0); // deprecated humidity
}
}
//if(version != 1)
// throw SerializationError("unsupported MapBlock version");
if(version >= 1) {
- heat = readF1000(is);
- humidity = readF1000(is);
+ readF1000(is); // deprecated heat
+ readF1000(is); // deprecated humidity
}
}
catch(SerializationError &e)