From 807a0d313ba667356ee8af8ef5ae82b6c4881d15 Mon Sep 17 00:00:00 2001 From: Kahrl Date: Tue, 13 Mar 2012 18:56:12 +0100 Subject: MapBlockMesh, mesh animation system, urgent mesh updates, athmospheric light, removed footprints --- src/game.cpp | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 90856effc..b1cc0bfe5 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1038,8 +1038,6 @@ void the_game( float object_hit_delay_timer = 0.0; float time_from_last_punch = 10; - float crack_update_timer = 0.0; - bool invert_mouse = g_settings->getBool("invert_mouse"); bool respawn_menu_active = false; @@ -1185,7 +1183,6 @@ void the_game( if(object_hit_delay_timer >= 0) object_hit_delay_timer -= dtime; time_from_last_punch += dtime; - crack_update_timer += dtime; g_profiler->add("Elapsed time", dtime); g_profiler->avg("FPS", 1./dtime); @@ -1908,7 +1905,7 @@ void the_game( if(!digging) { client.interact(1, pointed_old); - client.clearTempMod(pointed_old.node_undersurface); + client.setCrack(-1, v3s16(0,0,0)); dig_time = 0.0; } } @@ -2003,20 +2000,15 @@ void the_game( } else if(dig_index < CRACK_ANIMATION_LENGTH) { - // Limit crack update speed - if(crack_update_timer >= 0.1){ - crack_update_timer = 0.0; - //infostream<<"dig_index="<= 0.2 && brightness < 0.7) bgcolor = video::SColor( -- cgit v1.2.3