rail_cmd.c
changeset 3270 a9bed87794a2
parent 3269 62fb247bf94b
child 3271 114243e3465f
equal deleted inserted replaced
3269:62fb247bf94b 3270:a9bed87794a2
  1989 			if ((b & 0x10) == 0) ret |= 0x08200000;
  1989 			if ((b & 0x10) == 0) ret |= 0x08200000;
  1990 		}
  1990 		}
  1991 		return ret;
  1991 		return ret;
  1992 	} else {
  1992 	} else {
  1993 		if (GetRailTileSubtype(tile) == RAIL_SUBTYPE_DEPOT) {
  1993 		if (GetRailTileSubtype(tile) == RAIL_SUBTYPE_DEPOT) {
  1994 			return 0;
  1994 			return (DiagDirToAxis(GetRailDepotDirection(tile)) == AXIS_X ? TRACK_BIT_X : TRACK_BIT_Y) * 0x101;
  1995 		} else {
  1995 		} else {
  1996 			return GetRailWaypointBits(tile) * 0x101;
  1996 			return GetRailWaypointBits(tile) * 0x101;
  1997 		}
  1997 		}
  1998 	}
  1998 	}
  1999 }
  1999 }