aircraft_gui.c
changeset 3315 c9d989783c55
parent 3157 3f35e2d9c8e3
child 3338 7cff208f0446
equal deleted inserted replaced
3314:6aaeba4b92e8 3315:c9d989783c55
     2 
     2 
     3 #include "stdafx.h"
     3 #include "stdafx.h"
     4 #include "openttd.h"
     4 #include "openttd.h"
     5 #include "debug.h"
     5 #include "debug.h"
     6 #include "functions.h"
     6 #include "functions.h"
       
     7 #include "station_map.h"
     7 #include "table/sprites.h"
     8 #include "table/sprites.h"
     8 #include "table/strings.h"
     9 #include "table/strings.h"
     9 #include "map.h"
    10 #include "map.h"
    10 #include "tile.h"
    11 #include "tile.h"
    11 #include "window.h"
    12 #include "window.h"
   648 			num++;
   649 			num++;
   649 		}
   650 		}
   650 	}
   651 	}
   651 	SetVScrollCount(w, (num + w->hscroll.cap - 1) / w->hscroll.cap);
   652 	SetVScrollCount(w, (num + w->hscroll.cap - 1) / w->hscroll.cap);
   652 
   653 
   653 	SetDParam(0, _m[tile].m2);
   654 	SetDParam(0, GetStationIndex(tile));
   654 	DrawWindowWidgets(w);
   655 	DrawWindowWidgets(w);
   655 
   656 
   656 	x = 2;
   657 	x = 2;
   657 	y = 15;
   658 	y = 15;
   658 	num = w->vscroll.pos * w->hscroll.cap;
   659 	num = w->vscroll.pos * w->hscroll.cap;