Index: base.tab =================================================================== --- base.tab (revisión: 10014) +++ base.tab (copia de trabajo) @@ -4092,6 +4092,10 @@ name=Absolute times note=absolute departure time instead relativein departure board - +obj=program_text +name=The slope is not high enough! +note=Shown when building a tunnel in a half-slope +- #obj=help_text #name=Lower values mean more local sounds Index: trunk/simtool.cc =================================================================== --- trunk/simtool.cc (revisión: 10014) +++ trunk/simtool.cc (copia de trabajo) @@ -2951,9 +2951,14 @@ win_set_static_tooltip( translator::translate("No suitable ground!") ); slope_t::type sl = gr->get_grund_hang(); - if( sl == slope_t::flat || !slope_t::is_way( sl ) || (env_t::pak_height_conversion_factor == 1 && !is_one_high(sl)) || (env_t::pak_height_conversion_factor == 2 && is_one_high(sl)) ) { + if( sl == slope_t::flat || !slope_t::is_way( sl ) ) { // cannot start a tunnel here, wrong slope return ""; + } + + if( (env_t::pak_height_conversion_factor == 1 && !is_one_high(sl)) || (env_t::pak_height_conversion_factor == 2 && is_one_high(sl)) ) { + win_set_static_tooltip( translator::translate("The slope is not high enough!") ); + return ""; } const tunnel_desc_t *desc = tunnel_builder_t::get_desc(default_param);