if(in_water)
{
v3s16 pp = floatToInt(position + v3f(0,0,0));
- in_water = material_liquid(map.getNode(pp).d);
+ in_water = content_liquid(map.getNode(pp).d);
}
else
{
v3s16 pp = floatToInt(position + v3f(0,BS/2,0));
- in_water = material_liquid(map.getNode(pp).d);
+ in_water = content_liquid(map.getNode(pp).d);
}
}
catch(InvalidPositionException &e)
for(s16 z = oldpos_i.Z - 1; z <= oldpos_i.Z + 1; z++){
for(s16 x = oldpos_i.X - 1; x <= oldpos_i.X + 1; x++){
try{
- if(material_walkable(map.getNode(v3s16(x,y,z)).d) == false){
+ if(content_walkable(map.getNode(v3s16(x,y,z)).d) == false){
continue;
}
}
RemotePlayer
*/
+#ifndef SERVER
+
RemotePlayer::RemotePlayer(
scene::ISceneNode* parent,
IrrlichtDevice *device,
m_text(NULL)
{
m_box = core::aabbox3d<f32>(-BS/2,0,-BS/2,BS/2,BS*2,BS/2);
-
+
if(parent != NULL && device != NULL)
{
// ISceneNode stores a member called SceneManager
}
}
+#endif
+
+#ifndef SERVER
/*
LocalPlayer
*/
// Accelerate to target speed with maximum increment
accelerate(speed, inc);
}
-
+#endif