Reset block usage timer on client only if it is very probably drawn
authorPerttu Ahola <celeron55@gmail.com>
Tue, 8 Nov 2011 00:05:42 +0000 (02:05 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 8 Nov 2011 00:13:22 +0000 (02:13 +0200)
src/map.cpp

index d4eefc737ffbc2bdc35c96ea1428d57342a868cd..f2ac3f6184bb3d1f67485d6bd259189941be1a36 100644 (file)
@@ -3786,9 +3786,6 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass)
 
                        blocks_in_range++;
                        
-                       // This block is in range. Reset usage timer.
-                       block->resetUsageTimer();
-
 #if 1
                        /*
                                Update expired mesh (used for day/night change)
@@ -3878,6 +3875,9 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass)
                                continue;
                        }
                        
+                       // This block is in range. Reset usage timer.
+                       block->resetUsageTimer();
+
                        /*
                                Ignore if mesh doesn't exist
                        */