Changeset - r971:5f848a37c5ea
[Not reviewed]
master
0 3 0
darkvater - 20 years ago 2005-01-10 14:56:26
darkvater@openttd.org
(svn r1466) -Fix: oops, depot windows can of course also scroll horizontally. Thanks si-m1.
3 files changed with 6 insertions and 6 deletions:
0 comments (0 inline, 0 general)
aircraft_gui.c
Show inline comments
 
@@ -742,7 +742,7 @@ static int GetVehicleFromAircraftDepotWn
 

	
 
	xt = x / 74;
 
	xm = x % 74;
 
	if (xt >= 4)
 
	if (xt >= w->hscroll.cap)
 
		return 1;
 

	
 
	row = (y - 14) / 24;
 
@@ -750,7 +750,7 @@ static int GetVehicleFromAircraftDepotWn
 
	if (row >= w->vscroll.cap)
 
		return 1;
 

	
 
	pos = (row + w->vscroll.pos) * 4 + xt;
 
	pos = (row + w->vscroll.pos) * w->hscroll.cap + xt;
 

	
 
	tile = w->window_number;
 
	FOR_ALL_VEHICLES(v) {
roadveh_gui.c
Show inline comments
 
@@ -551,14 +551,14 @@ static int GetVehicleFromRoadDepotWndPt(
 

	
 
	xt = x / 56;
 
	xm = x % 56;
 
	if (xt >= 5)
 
	if (xt >= w->hscroll.cap)
 
		return 1;
 

	
 
	row = (y - 14) / 14;
 
	if (row >= w->vscroll.cap)
 
		return 1;
 

	
 
	pos = (row + w->vscroll.pos) * 5 + xt;
 
	pos = (row + w->vscroll.pos) * w->hscroll.cap + xt;
 

	
 
	tile = w->window_number;
 
	FOR_ALL_VEHICLES(v) {
ship_gui.c
Show inline comments
 
@@ -684,7 +684,7 @@ static int GetVehicleFromShipDepotWndPt(
 

	
 
	xt = x / 90;
 
	xm = x % 90;
 
	if (xt >= 5)
 
	if (xt >= w->hscroll.cap)
 
		return 1;
 

	
 
	row = (y - 14) / 24;
 
@@ -692,7 +692,7 @@ static int GetVehicleFromShipDepotWndPt(
 
	if (row >= w->vscroll.cap)
 
		return 1;
 

	
 
	pos = (row + w->vscroll.pos) * 3 + xt;
 
	pos = (row + w->vscroll.pos) * w->hscroll.cap + xt;
 

	
 
	tile = w->window_number;
 
	FOR_ALL_VEHICLES(v) {
0 comments (0 inline, 0 general)