Feature: [NewGRF] Allow higher max speeds for ships
This commit is contained in:
		 Koen Bussemaker
					Koen Bussemaker
				
			
				
					committed by
					
						 rubidium42
						rubidium42
					
				
			
			
				
	
			
			
			 rubidium42
						rubidium42
					
				
			
						parent
						
							461d69a8f6
						
					
				
				
					commit
					5a55c4a934
				
			| @@ -3273,6 +3273,13 @@ bool AfterLoadGame() | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if (IsSavegameVersionBefore(SLV_SHIP_ACCELERATION)) { | ||||
| 		/* NewGRF acceleration information was added to ships. */ | ||||
| 		for (Ship *s : Ship::Iterate()) { | ||||
| 			if (s->acceleration == 0) s->acceleration = ShipVehInfo(s->engine_type)->acceleration; | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	for (Company *c : Company::Iterate()) { | ||||
| 		UpdateCompanyLiveries(c); | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user