camera_direction(0,0,1),
m_server_ser_ver(SER_FMT_VER_INVALID),
m_inventory_updated(false),
- m_time_of_day(0)
+ m_time_of_day(0),
+ m_map_seed(0)
{
m_packetcounter_timer = 0.0;
m_delete_unused_sectors_timer = 0.0;
ClientActiveObject(0),
m_selection_box(-BS/3.,0.0,-BS/3., BS/3.,BS/2.,BS/3.),
m_node(NULL),
- m_position(v3f(0,10*BS,0))
+ m_position(v3f(0,10*BS,0)),
+ m_yaw(0)
{
ClientActiveObject::registerType(getType(), create);
}
threadid = id;
stack_i = 0;
stack_max_i = 0;
+ memset(stack, 0, DEBUG_STACK_SIZE*DEBUG_STACK_TEXT_SIZE);
}
void DebugStack::print(FILE *file, bool everything)
}
ManualMapVoxelManipulator::ManualMapVoxelManipulator(Map *map):
- MapVoxelManipulator(map)
+ MapVoxelManipulator(map),
+ m_create_area(false)
{
}
ChunkMakeData():
no_op(false),
- vmanip(NULL)
+ vmanip(NULL),
+ seed(0)
{}
};
(-BS*0.3,-BS*.25,-BS*0.3, BS*0.3,BS*0.25,BS*0.3);
m_selection_box = new core::aabbox3d<f32>
(-BS*0.3,-BS*.25,-BS*0.3, BS*0.3,BS*0.25,BS*0.3);
-
+
+ m_yaw = 0;
m_counter1 = 0;
m_counter2 = 0;
m_age = 0;
public:
PlayerObject(MapBlock *block, s16 id, v3f pos):
MovingObject(block, id, pos),
- m_node(NULL)
+ m_node(NULL),
+ m_yaw(0)
{
m_collision_box = new core::aabbox3d<f32>
(-BS*0.3,-BS*.25,-BS*0.3, BS*0.3,BS*0.25,BS*0.3);
PlayerInfo::PlayerInfo()
{
name[0] = 0;
+ avg_rtt = 0;
}
void PlayerInfo::PrintLine(std::ostream *s)
Address::Address()
{
+ m_address = 0;
+ m_port = 0;
}
Address::Address(unsigned int address, unsigned short port)
*/
// Creates a string with the length as the first two bytes
-inline std::string serializeString(const std::string plain)
+inline std::string serializeString(const std::string &plain)
{
assert(plain.size() <= 65535);
char buf[2];
}
// Creates a string with the length as the first four bytes
-inline std::string serializeLongString(const std::string plain)
+inline std::string serializeLongString(const std::string &plain)
{
char buf[4];
writeU32((u8*)&buf[0], plain.size());
/*
Some settings
*/
- bool m_disable_water_climb;
+ //bool m_disable_water_climb;
private:
};