Searched refs:cur_slope (Results 1 – 8 of 8) sorted by relevance
947 …Slope cur_slope = _settings_game.construction.build_on_slopes ? GetFoundationSlope(tile) : GetTile… in IsRoadAllowedHere() local949 if (cur_slope == SLOPE_FLAT) return ret; in IsRoadAllowedHere()954 if (desired_slope != cur_slope && ComplementSlope(desired_slope) != cur_slope) { in IsRoadAllowedHere()959 res = DoCommand(tile, Chance16(1, 16) ? cur_slope : cur_slope ^ SLOPE_ELEVATED, 0, in IsRoadAllowedHere()
917 float cur_slope = (y - *f) / x; in fit_linear() local918 if (slope_min <= cur_slope && cur_slope <= slope_max) { in fit_linear()920 *c = cur_slope; in fit_linear()
914 float cur_slope = (y - *f) / x; in fit_linear() local915 if (slope_min <= cur_slope && cur_slope <= slope_max) { in fit_linear()917 *c = cur_slope; in fit_linear()
907 float cur_slope = (y - *f) / x; in fit_linear() local908 if (slope_min <= cur_slope && cur_slope <= slope_max) { in fit_linear()910 *c = cur_slope; in fit_linear()
930 float cur_slope = (y - *f) / x; in fit_linear() local931 if (slope_min <= cur_slope && cur_slope <= slope_max) { in fit_linear()933 *c = cur_slope; in fit_linear()
927 float cur_slope = (y - *f) / x; in fit_linear() local928 if (slope_min <= cur_slope && cur_slope <= slope_max) { in fit_linear()930 *c = cur_slope; in fit_linear()