equal
deleted
inserted
replaced
2641 { |
2641 { |
2642 uint j; |
2642 uint j; |
2643 Station *st = AllocateStation(); |
2643 Station *st = AllocateStation(); |
2644 |
2644 |
2645 if (st == NULL) { |
2645 if (st == NULL) { |
2646 DEBUG(misc, 0) ("Couldn't allocate station for oilrig at %#X, reverting to oilrig only...", tile); |
2646 DEBUG(misc, 0) ("Couldn't allocate station for oilrig at 0x%X, reverting to oilrig only...", tile); |
2647 return; |
2647 return; |
2648 } |
2648 } |
2649 if (!GenerateStationName(st, tile, 2)) { |
2649 if (!GenerateStationName(st, tile, 2)) { |
2650 DEBUG(misc, 0) ("Couldn't allocate station-name for oilrig at %#X, reverting to oilrig only...", tile); |
2650 DEBUG(misc, 0) ("Couldn't allocate station-name for oilrig at 0x%X, reverting to oilrig only...", tile); |
2651 return; |
2651 return; |
2652 } |
2652 } |
2653 |
2653 |
2654 st->town = ClosestTownFromTile(tile, (uint)-1); |
2654 st->town = ClosestTownFromTile(tile, (uint)-1); |
2655 st->sign.width_1 = 0; |
2655 st->sign.width_1 = 0; |