equal
deleted
inserted
replaced
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; |