station_cmd.c
changeset 5380 8ea58542b6e0
parent 5362 1a3af9aa3697
child 5385 3868f2e6db9b
equal deleted inserted replaced
5379:929378a0014f 5380:8ea58542b6e0
  2767 {
  2767 {
  2768 	uint j;
  2768 	uint j;
  2769 	Station *st = AllocateStation();
  2769 	Station *st = AllocateStation();
  2770 
  2770 
  2771 	if (st == NULL) {
  2771 	if (st == NULL) {
  2772 		DEBUG(misc, 0) ("Couldn't allocate station for oilrig at 0x%X, reverting to oilrig only...", tile);
  2772 		DEBUG(misc, 0, "Can't allocate station for oilrig at 0x%X, reverting to oilrig only", tile);
  2773 		return;
  2773 		return;
  2774 	}
  2774 	}
  2775 	if (!GenerateStationName(st, tile, 2)) {
  2775 	if (!GenerateStationName(st, tile, 2)) {
  2776 		DEBUG(misc, 0) ("Couldn't allocate station-name for oilrig at 0x%X, reverting to oilrig only...", tile);
  2776 		DEBUG(misc, 0, "Can't allocate station-name for oilrig at 0x%X, reverting to oilrig only", tile);
  2777 		return;
  2777 		return;
  2778 	}
  2778 	}
  2779 
  2779 
  2780 	st->town = ClosestTownFromTile(tile, (uint)-1);
  2780 	st->town = ClosestTownFromTile(tile, (uint)-1);
  2781 	st->sign.width_1 = 0;
  2781 	st->sign.width_1 = 0;