(svn r3546) - NewGRF feature: Implement rail vehicle 'property' 0x1A: allows shuffling order of rail vehicle purchase list (and replace vehicle list)

This commit is contained in:
peter1138
2006-02-04 21:48:46 +00:00
parent c77c99b3c7
commit 2d67fc8741
5 changed files with 68 additions and 7 deletions

View File

@@ -170,9 +170,10 @@ void CcCloneTrain(bool success, uint tile, uint32 p1, uint32 p2)
static void engine_drawing_loop(int *x, int *y, int *pos, int *sel,
EngineID* selected_id, RailType railtype, byte show_max, bool is_engine)
{
EngineID i;
EngineID j;
for (i = 0; i < NUM_TRAIN_ENGINES; i++) {
for (j = 0; j < NUM_TRAIN_ENGINES; j++) {
EngineID i = GetRailVehAtPosition(j);
const Engine *e = GetEngine(i);
const RailVehicleInfo *rvi = RailVehInfo(i);