src/station_gui.cpp
changeset 5668 36b39f4a9032
parent 5609 dc6a58930ba4
child 5745 c8069ea3af5d
equal deleted inserted replaced
5667:47454cf088f9 5668:36b39f4a9032
    16 #include "command.h"
    16 #include "command.h"
    17 #include "variables.h"
    17 #include "variables.h"
    18 #include "vehicle_gui.h"
    18 #include "vehicle_gui.h"
    19 #include "date.h"
    19 #include "date.h"
    20 #include "vehicle.h"
    20 #include "vehicle.h"
       
    21 #include "table/sprites.h"
    21 #include "helpers.hpp"
    22 #include "helpers.hpp"
    22 
    23 
    23 enum StationListWidgets {
    24 enum StationListWidgets {
    24 	STATIONLIST_WIDGET_CLOSEBOX = 0,
    25 	STATIONLIST_WIDGET_CLOSEBOX = 0,
    25 	STATIONLIST_WIDGET_LIST = 3,
    26 	STATIONLIST_WIDGET_LIST = 3,
   653 		num = (waiting + 5) / 10;
   654 		num = (waiting + 5) / 10;
   654 		if (num != 0) {
   655 		if (num != 0) {
   655 			int cur_x = x;
   656 			int cur_x = x;
   656 			num = min(num, 23);
   657 			num = min(num, 23);
   657 			do {
   658 			do {
   658 				DrawSprite(_cargoc.sprites[i], cur_x, y);
   659 				DrawSprite(_cargoc.sprites[i], PAL_NONE, cur_x, y);
   659 				cur_x += 10;
   660 				cur_x += 10;
   660 			} while (--num);
   661 			} while (--num);
   661 		}
   662 		}
   662 
   663 
   663 		if ( st->goods[i].enroute_from == station_id) {
   664 		if ( st->goods[i].enroute_from == station_id) {