station_cmd.c
changeset 3422 a6eba3443452
parent 3418 ec9003ebf933
child 3429 20b7bab277c1
equal deleted inserted replaced
3421:7968a4b5ff0a 3422:a6eba3443452
   466 
   466 
   467 // Update the virtual coords needed to draw the station sign.
   467 // Update the virtual coords needed to draw the station sign.
   468 // st = Station to update for.
   468 // st = Station to update for.
   469 static void UpdateStationVirtCoord(Station *st)
   469 static void UpdateStationVirtCoord(Station *st)
   470 {
   470 {
   471 	Point pt = RemapCoords2(TileX(st->xy) * 16, TileY(st->xy) * 16);
   471 	Point pt = RemapCoords2(TileX(st->xy) * TILE_SIZE, TileY(st->xy) * TILE_SIZE);
   472 
   472 
   473 	pt.y -= 32;
   473 	pt.y -= 32;
   474 	if (st->facilities & FACIL_AIRPORT && st->airport_type == AT_OILRIG) pt.y -= 16;
   474 	if (st->facilities & FACIL_AIRPORT && st->airport_type == AT_OILRIG) pt.y -= 16;
   475 
   475 
   476 	SetDParam(0, st->index);
   476 	SetDParam(0, st->index);