Changeset - r1294:8792ed412267
[Not reviewed]
master
0 5 0
tron - 20 years ago 2005-02-04 20:40:04
tron@openttd.org
(svn r1798) GetFoo(i)->index is per definition i, so replace the former with the latter
5 files changed with 5 insertions and 5 deletions:
0 comments (0 inline, 0 general)
aircraft_gui.c
Show inline comments
 
@@ -1012,7 +1012,7 @@ static void PlayerAircraftWndProc(Window
 
				w->widget[1].unkA = STR_A009_AIRCRAFT;
 
			} else {
 
				/* Station Name -- (###) Aircraft */
 
				SetDParam(0, GetStation(station)->index);
 
				SetDParam(0, station);
 
				SetDParam(1, w->vscroll.count);
 
				w->widget[1].unkA = STR_SCHEDULED_AIRCRAFT;
 
			}
roadveh_gui.c
Show inline comments
 
@@ -799,7 +799,7 @@ static void PlayerRoadVehWndProc(Window 
 
				w->widget[1].unkA = STR_9001_ROAD_VEHICLES;
 
			} else {
 
				/* Station Name -- (###) Road vehicles */
 
				SetDParam(0, GetStation(station)->index);
 
				SetDParam(0, station);
 
				SetDParam(1, w->vscroll.count);
 
				w->widget[1].unkA = STR_SCHEDULED_ROAD_VEHICLES;
 
			}
ship_gui.c
Show inline comments
 
@@ -956,7 +956,7 @@ static void PlayerShipsWndProc(Window *w
 
				w->widget[1].unkA = STR_9805_SHIPS;
 
			} else {
 
				/* Station Name -- (###) Trains */
 
				SetDParam(0, GetStation(station)->index);
 
				SetDParam(0, station);
 
				SetDParam(1, w->vscroll.count);
 
				w->widget[1].unkA = STR_SCHEDULED_SHIPS;
 
			}
train_gui.c
Show inline comments
 
@@ -1298,7 +1298,7 @@ static void PlayerTrainsWndProc(Window *
 
				w->widget[1].unkA = STR_881B_TRAINS;
 
			} else {
 
				/* Station Name -- (###) Trains */
 
				SetDParam(0, GetStation(station)->index);
 
				SetDParam(0, station);
 
				SetDParam(1, w->vscroll.count);
 
				w->widget[1].unkA = STR_SCHEDULED_TRAINS;
 
			}
vehicle_gui.c
Show inline comments
 
@@ -176,7 +176,7 @@ int CDECL GeneralOwnerSorter(const void 
 
*/
 
int CDECL VehicleUnsortedSorter(const void *a, const void *b)
 
{
 
	return GetVehicle((*(const SortStruct*)a).index)->index - GetVehicle((*(const SortStruct*)b).index)->index;
 
	return ((const SortStruct*)a)->index - ((const SortStruct*)b)->index;
 
}
 

	
 
// if the sorting criteria had the same value, sort vehicle by unitnumber
0 comments (0 inline, 0 general)