mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	Remove lots of dead code
Add check for datatype overflows use native datatype indices instead of fixed 16bit/32bit ones
This commit is contained in:
		
							
								
								
									
										672
									
								
								src/client.cpp
									
									
									
									
									
								
							
							
						
						
									
										672
									
								
								src/client.cpp
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -384,9 +384,6 @@ public:
 | 
			
		||||
			core::line3d<f32> shootline_on_map
 | 
			
		||||
	);
 | 
			
		||||
 | 
			
		||||
	// Prints a line or two of info
 | 
			
		||||
	void printDebugInfo(std::ostream &os);
 | 
			
		||||
 | 
			
		||||
	std::list<std::string> getConnectedPlayerNames();
 | 
			
		||||
 | 
			
		||||
	float getAnimationTime();
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										21
									
								
								src/game.cpp
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								src/game.cpp
									
									
									
									
									
								
							@@ -1518,6 +1518,9 @@ void the_game(
 | 
			
		||||
	str += "]";
 | 
			
		||||
	device->setWindowCaption(str.c_str());
 | 
			
		||||
 | 
			
		||||
	// Info text
 | 
			
		||||
	std::wstring infotext;
 | 
			
		||||
 | 
			
		||||
	for(;;)
 | 
			
		||||
	{
 | 
			
		||||
		if(device->run() == false || kill == true)
 | 
			
		||||
@@ -1700,23 +1703,9 @@ void the_game(
 | 
			
		||||
		
 | 
			
		||||
		// Hilight boxes collected during the loop and displayed
 | 
			
		||||
		std::vector<aabb3f> hilightboxes;
 | 
			
		||||
		
 | 
			
		||||
		// Info text
 | 
			
		||||
		std::wstring infotext;
 | 
			
		||||
 | 
			
		||||
		/*
 | 
			
		||||
			Debug info for client
 | 
			
		||||
		*/
 | 
			
		||||
		{
 | 
			
		||||
			static float counter = 0.0;
 | 
			
		||||
			counter -= dtime;
 | 
			
		||||
			if(counter < 0)
 | 
			
		||||
			{
 | 
			
		||||
				counter = 30.0;
 | 
			
		||||
				client.printDebugInfo(infostream);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		/* reset infotext */
 | 
			
		||||
		infotext = L"";
 | 
			
		||||
		/*
 | 
			
		||||
			Profiler
 | 
			
		||||
		*/
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user