summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2010-12-23 12:10:46 +0200
committerPerttu Ahola <celeron55@gmail.com>2010-12-23 12:10:46 +0200
commita55850e4dcc3440fdadb9fc94df3f2ef02f5a34d (patch)
treeacd394bb791dc81aff2515083351e23e25346430 /src/client.cpp
parent03d67af9e85b9641556c8ea2276aa07f6fca175e (diff)
downloadminetest-a55850e4dcc3440fdadb9fc94df3f2ef02f5a34d.tar.gz
minetest-a55850e4dcc3440fdadb9fc94df3f2ef02f5a34d.tar.bz2
minetest-a55850e4dcc3440fdadb9fc94df3f2ef02f5a34d.zip
fixed crack animation timing in client
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 32f62e3ba..23f9d2a55 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -176,6 +176,7 @@ void Client::step(float dtime)
if(dr != m_env.getDayNightRatio())
{
//dstream<<"dr="<<dr<<std::endl;
+ dout_client<<DTIME<<"Client: changing day-night ratio"<<std::endl;
m_env.setDayNightRatio(dr);
m_env.expireMeshes(true);
}
@@ -1037,6 +1038,9 @@ bool Client::AsyncProcessPacket(LazyMeshUpdater &mesh_updater)
p.Z = readS16(&data[6]);
//TimeTaker t1("TOCLIENT_REMOVENODE", g_device);
+
+ // This will clear the cracking animation after digging
+ ((ClientMap&)m_env.getMap()).clearTempMod(p);
core::map<v3s16, MapBlock*> modified_blocks;