(svn r23111) -Fix: Keep subtype when automatically choosing the cargo for auto-refitting.

This commit is contained in:
michi_cc
2011-11-04 15:04:24 +00:00
parent 9782b7bb0a
commit ad2fdd8d6f
3 changed files with 9 additions and 4 deletions

View File

@@ -21,6 +21,7 @@
#include "newgrf_config.h"
#include "track_type.h"
#include "livery.h"
#include "cargotype.h"
#define is_custom_sprite(x) (x >= 0xFD)
#define IS_CUSTOM_FIRSTHEAD_SPRITE(x) (x == 0xFD)
@@ -44,7 +45,7 @@ byte VehicleRandomBits();
void ResetVehiclePosHash();
void ResetVehicleColourMap();
byte GetBestFittingSubType(Vehicle *v_from, Vehicle *v_for);
byte GetBestFittingSubType(Vehicle *v_from, Vehicle *v_for, CargoID dest_cargo_type = INVALID_CARGO);
void ViewportAddVehicles(DrawPixelInfo *dpi);