mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-31 10:29:10 +00:00
(svn r7057) -Codechange: Remove hardcoded lists of road vehicles for each cargo type in favour of just checking the cargo type of each vehicle.
This commit is contained in:
3
misc.c
3
misc.c
@@ -211,9 +211,6 @@ void InitializeLandscapeVariables(bool only_constants)
|
||||
|
||||
lpd = &_cargo_types_base_values[_opt.landscape];
|
||||
|
||||
memcpy(_cargoc.ai_roadveh_start, lpd->road_veh_by_cargo_start,sizeof(lpd->road_veh_by_cargo_start));
|
||||
memcpy(_cargoc.ai_roadveh_count, lpd->road_veh_by_cargo_count,sizeof(lpd->road_veh_by_cargo_count));
|
||||
|
||||
for (i = 0; i != NUM_CARGO; i++) {
|
||||
_cargoc.sprites[i] = lpd->sprites[i];
|
||||
|
||||
|
Reference in New Issue
Block a user