diff options
author | skidd13 <skidd13@openttd.org> | 2008-06-16 17:05:17 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2008-06-16 17:05:17 +0000 |
commit | 96e898699c14b264f04b8ffa2e82e93a2bad49f7 (patch) | |
tree | 319f50b5b15c8e595d0cbf7f855fc6301b70a8b5 | |
parent | 5e956bf57f520f457aab78363a9910ab579cbf71 (diff) | |
download | openttd-96e898699c14b264f04b8ffa2e82e93a2bad49f7.tar.xz |
(svn r13533) -Codechange: Replace direct class member access of GUIList with the appropriate function calls
-rw-r--r-- | src/bridge_gui.cpp | 2 | ||||
-rw-r--r-- | src/town_gui.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bridge_gui.cpp b/src/bridge_gui.cpp index e50e7aeb9..ed66dcce9 100644 --- a/src/bridge_gui.cpp +++ b/src/bridge_gui.cpp @@ -151,7 +151,7 @@ public: { this->DrawWidgets(); - this->DrawSortButtonState(BBSW_DROPDOWN_ORDER, (this->bridges->flags & VL_DESC) ? SBS_DOWN : SBS_UP); + this->DrawSortButtonState(BBSW_DROPDOWN_ORDER, this->bridges->IsDescSortOrder() ? SBS_DOWN : SBS_UP); uint y = this->widget[BBSW_BRIDGE_LIST].top + 2; diff --git a/src/town_gui.cpp b/src/town_gui.cpp index 77e84aafa..241b60d6d 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -545,7 +545,7 @@ public: SetVScrollCount(this, this->towns.Length()); this->DrawWidgets(); - this->DrawSortButtonState(this->towns.sort_type == 0 ? TDW_SORTNAME : TDW_SORTPOPULATION, this->towns.IsDescSortOrder() ? SBS_DOWN : SBS_UP); + this->DrawSortButtonState(this->towns.SortType() == 0 ? TDW_SORTNAME : TDW_SORTPOPULATION, this->towns.IsDescSortOrder() ? SBS_DOWN : SBS_UP); { int n = 0; |