src/town_cmd.cpp
changeset 9594 8ea48f013588
parent 9592 835ccfd13653
child 9652 0405e98d8e96
equal deleted inserted replaced
9593:24938c3df0ac 9594:8ea48f013588
  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);