File diff r23482:de566f8c088d → r23483:3733e6b8ff17
src/window.cpp
Show inline comments
 
@@ -3117,19 +3117,17 @@ void UpdateWindows()
 

	
 
	PerformanceMeasurer framerate(PFE_DRAWING);
 
	PerformanceAccumulator::Reset(PFE_DRAWWORLD);
 

	
 
	CallWindowRealtimeTickEvent(delta_ms);
 

	
 
#ifdef ENABLE_NETWORK
 
	static GUITimer network_message_timer = GUITimer(1);
 
	if (network_message_timer.Elapsed(delta_ms)) {
 
		network_message_timer.SetInterval(1000);
 
		NetworkChatMessageLoop();
 
	}
 
#endif
 

	
 
	Window *w;
 

	
 
	static GUITimer window_timer = GUITimer(1);
 
	if (window_timer.Elapsed(delta_ms)) {
 
		if (_network_dedicated) window_timer.SetInterval(MILLISECONDS_PER_TICK);
 
@@ -3440,16 +3438,15 @@ void ReInitAllWindows()
 
	InitDepotWindowBlockSizes();
 

	
 
	Window *w;
 
	FOR_ALL_WINDOWS_FROM_BACK(w) {
 
		w->ReInit();
 
	}
 
#ifdef ENABLE_NETWORK
 

	
 
	void NetworkReInitChatBoxSize();
 
	NetworkReInitChatBoxSize();
 
#endif
 

	
 
	/* Make sure essential parts of all windows are visible */
 
	RelocateAllWindows(_cur_resolution.width, _cur_resolution.height);
 
	MarkWholeScreenDirty();
 
}