File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -320,13 +320,6 @@ void GenericCAO::processInitData(const std::string &data)
320
320
m_yaw = readF1000 (is);
321
321
m_hp = readS16 (is);
322
322
num_messages = readU8 (is);
323
- } else if (version == 0 ) { // In PROTOCOL_VERSION 13
324
- m_name = deSerializeString (is);
325
- m_is_player = readU8 (is);
326
- m_position = readV3F1000 (is);
327
- m_yaw = readF1000 (is);
328
- m_hp = readS16 (is);
329
- num_messages = readU8 (is);
330
323
} else {
331
324
errorstream<<" GenericCAO: Unsupported init data version"
332
325
<<std::endl;
@@ -689,7 +682,10 @@ void GenericCAO::updateLightNoCheck(u8 light_at_pos)
689
682
690
683
v3s16 GenericCAO::getLightPosition ()
691
684
{
692
- return floatToInt (m_position + v3f (0 , 0.5 * BS, 0 ), BS);
685
+ if (m_is_player)
686
+ return floatToInt (m_position + v3f (0 , 0.5 * BS, 0 ), BS);
Has a conversation. Original line has a conversation.
687
+
688
+ return floatToInt (m_position, BS);
693
689
}
694
690
695
691
void GenericCAO::updateNodePos ()
You can’t perform that action at this time.