1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Scripting WIP

This commit is contained in:
Perttu Ahola 2011-11-12 13:59:56 +02:00
parent 23adfff4fe
commit 38944467d3
9 changed files with 59 additions and 29 deletions

View file

@ -1368,9 +1368,11 @@ void LuaEntityCAO::processMessage(const std::string &data)
m_yaw = readF1000(is);
// is_end_position (for interpolation)
bool is_end_position = readU8(is);
// update_interval
float update_interval = readF1000(is);
if(do_interpolate)
pos_translator.update(m_position, is_end_position);
pos_translator.update(m_position, is_end_position, update_interval);
else
pos_translator.init(m_position);
updateNodePos();