aboutsummaryrefslogtreecommitdiff
path: root/src/content_sao.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/content_sao.cpp')
-rw-r--r--src/content_sao.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/content_sao.cpp b/src/content_sao.cpp
index 7526e0353..a372b986f 100644
--- a/src/content_sao.cpp
+++ b/src/content_sao.cpp
@@ -782,12 +782,14 @@ PlayerSAO::PlayerSAO(ServerEnvironment *env_, Player *player_, u16 peer_id_,
m_prop.physical = false;
m_prop.weight = 75;
m_prop.collisionbox = core::aabbox3d<f32>(-1/3.,-1.0,-1/3., 1/3.,1.0,1/3.);
- m_prop.visual = "upright_sprite";
+ // start of default appearance, this should be overwritten by LUA
+ m_prop.visual = "upright-sprite";
m_prop.visual_size = v2f(1, 2);
m_prop.textures.clear();
m_prop.textures.push_back("player.png");
m_prop.textures.push_back("player_back.png");
m_prop.spritediv = v2s16(1,1);
+ // end of default appearance
m_prop.is_visible = (getHP() != 0);
m_prop.makes_footstep_sound = true;
}
@@ -1136,6 +1138,7 @@ void PlayerSAO::disconnected()
}
}
+
std::string PlayerSAO::getPropertyPacket()
{
m_prop.is_visible = (getHP() != 0);