equal
deleted
inserted
replaced
2009 * The given ID is set to the ID of the north tile and the TileDiff to the north tile is returned. |
2009 * The given ID is set to the ID of the north tile and the TileDiff to the north tile is returned. |
2010 * |
2010 * |
2011 * @param house Is changed to the HouseID of the north tile of the same house |
2011 * @param house Is changed to the HouseID of the north tile of the same house |
2012 * @return TileDiff from the tile of the given HouseID to the north tile |
2012 * @return TileDiff from the tile of the given HouseID to the north tile |
2013 */ |
2013 */ |
2014 static TileIndex GetHouseNorthPart(HouseID &house) |
2014 TileIndex GetHouseNorthPart(HouseID &house) |
2015 { |
2015 { |
2016 if (house >= 3) { // house id 0,1,2 MUST be single tile houses, or this code breaks. |
2016 if (house >= 3) { // house id 0,1,2 MUST be single tile houses, or this code breaks. |
2017 if (GetHouseSpecs(house - 1)->building_flags & TILE_SIZE_2x1) { |
2017 if (GetHouseSpecs(house - 1)->building_flags & TILE_SIZE_2x1) { |
2018 house--; |
2018 house--; |
2019 return TileDiffXY(-1, 0); |
2019 return TileDiffXY(-1, 0); |