Mercurial > hg > openttd
comparison src/station_cmd.cpp @ 8573:ed1fec953237 draft
(svn r12154) -Codechange: removed a magic number
author | glx <glx@openttd.org> |
---|---|
date | Fri, 15 Feb 2008 23:57:03 +0000 |
parents | b611278e4fed |
children | a34203ecde25 |
comparison
equal
deleted
inserted
replaced
8572:8a95003be848 | 8573:ed1fec953237 |
---|---|
597 GetAcceptanceAroundTiles( | 597 GetAcceptanceAroundTiles( |
598 accepts, | 598 accepts, |
599 TileXY(rect.min_x, rect.min_y), | 599 TileXY(rect.min_x, rect.min_y), |
600 rect.max_x - rect.min_x + 1, | 600 rect.max_x - rect.min_x + 1, |
601 rect.max_y - rect.min_y + 1, | 601 rect.max_y - rect.min_y + 1, |
602 _patches.modified_catchment ? FindCatchmentRadius(st) : 4 | 602 _patches.modified_catchment ? FindCatchmentRadius(st) : CA_UNMODIFIED |
603 ); | 603 ); |
604 } else { | 604 } else { |
605 memset(accepts, 0, sizeof(accepts)); | 605 memset(accepts, 0, sizeof(accepts)); |
606 } | 606 } |
607 | 607 |
2710 } else { | 2710 } else { |
2711 w_prod = 0; | 2711 w_prod = 0; |
2712 h_prod = 0; | 2712 h_prod = 0; |
2713 w += 8; | 2713 w += 8; |
2714 h += 8; | 2714 h += 8; |
2715 max_rad = 4; | 2715 max_rad = CA_UNMODIFIED; |
2716 } | 2716 } |
2717 | 2717 |
2718 BEGIN_TILE_LOOP(cur_tile, w, h, tile - TileDiffXY(max_rad, max_rad)) | 2718 BEGIN_TILE_LOOP(cur_tile, w, h, tile - TileDiffXY(max_rad, max_rad)) |
2719 cur_tile = TILE_MASK(cur_tile); | 2719 cur_tile = TILE_MASK(cur_tile); |
2720 if (!IsTileType(cur_tile, MP_STATION)) continue; | 2720 if (!IsTileType(cur_tile, MP_STATION)) continue; |