mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-22 23:26:34 +00:00
(svn r11240) -Fix [FS#1323] (r11152): forgot to invert a test
This commit is contained in:
parent
ffbd818517
commit
129d5c6e8a
@ -83,7 +83,7 @@ static uint GetClosestWaterDistance(TileIndex tile, bool water)
|
|||||||
* @return value encoded as per NFO specs */
|
* @return value encoded as per NFO specs */
|
||||||
uint32 GetIndustryIDAtOffset(TileIndex tile, const Industry *i)
|
uint32 GetIndustryIDAtOffset(TileIndex tile, const Industry *i)
|
||||||
{
|
{
|
||||||
if (!IsTileType(tile, MP_INDUSTRY) || GetIndustryIndex(tile) == i->index) {
|
if (!IsTileType(tile, MP_INDUSTRY) || GetIndustryIndex(tile) != i->index) {
|
||||||
/* No industry and/or the tile does not have the same industry as the one we match it with */
|
/* No industry and/or the tile does not have the same industry as the one we match it with */
|
||||||
return 0xFFFF;
|
return 0xFFFF;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user