diff --git a/gui/halt_detail.cc b/gui/halt_detail.cc index de3db9e6ad9..16cffa14e8d 100644 --- a/gui/halt_detail.cc +++ b/gui/halt_detail.cc @@ -78,7 +78,7 @@ void halt_detail_t::init() old_factory_count = 0; old_catg_count = 0; cached_active_player=NULL; - cashed_size_y = 0; + cached_size_y = 0; show_pas_info = false; show_freight_info = false; @@ -337,8 +337,8 @@ void halt_detail_t::update_components() } // tab1 - if (cashed_size_y != pas.get_size().h) { - cashed_size_y = pas.get_size().h; + if (cached_size_y != pas.get_size().h) { + cached_size_y = pas.get_size().h; if (tabstate==0) { set_tab_opened(); } @@ -588,7 +588,7 @@ void halt_detail_t::set_tab_opened() { case 0: // pas default: - set_windowsize(scr_size(get_windowsize().w, min(display_get_height() - margin_above_tab, margin_above_tab + cashed_size_y))); + set_windowsize(scr_size(get_windowsize().w, min(display_get_height() - margin_above_tab, margin_above_tab + cached_size_y))); break; case 1: // goods set_windowsize(scr_size(get_windowsize().w, min(display_get_height() - margin_above_tab, margin_above_tab + cont_goods.get_size().h))); diff --git a/gui/halt_detail.h b/gui/halt_detail.h index fcf180ce7da..5f340932bfe 100644 --- a/gui/halt_detail.h +++ b/gui/halt_detail.h @@ -205,7 +205,7 @@ class halt_detail_t : public gui_frame_t, action_listener_t uint32 cached_convoy_count; uint32 old_factory_count, old_catg_count; uint32 update_time; - scr_coord_val cashed_size_y; + scr_coord_val cached_size_y; static sint16 tabstate; bool show_pas_info, show_freight_info; diff --git a/gui/halt_info.cc b/gui/halt_info.cc index 82bcaf48ae4..3599c66e69d 100644 --- a/gui/halt_info.cc +++ b/gui/halt_info.cc @@ -594,7 +594,7 @@ void halt_info_t::init(halthandle_t halt) freight_sort_selector.new_component(translator::translate(sort_text[i]), SYSCOL_TEXT); } uint8 sort_mode = env_t::default_sortmode; - // 9 and 10 are sort modes for covonvoi, but 11 is for halt + // 9 and 10 are sort modes for convoi, but 11 is for halt halt->set_sortby(sort_mode >= by_line ? env_t::default_sortmode + 2 : env_t::default_sortmode); freight_sort_selector.set_selection(sort_mode); freight_sort_selector.set_focusable(true);