(svn r13533) -Codechange: Replace direct class member access of GUIList with the appropriate function calls
authorskidd13
Mon, 16 Jun 2008 17:05:17 +0000
changeset 10979 13c4100d8757
parent 10970 c0341ebaf88f
child 10980 5281330a77da
(svn r13533) -Codechange: Replace direct class member access of GUIList with the appropriate function calls
src/bridge_gui.cpp
src/town_gui.cpp
--- a/src/bridge_gui.cpp	Sun Jun 15 22:10:22 2008 +0000
+++ b/src/bridge_gui.cpp	Mon Jun 16 17:05:17 2008 +0000
@@ -151,7 +151,7 @@
 	{
 		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;
 
--- a/src/town_gui.cpp	Sun Jun 15 22:10:22 2008 +0000
+++ b/src/town_gui.cpp	Mon Jun 16 17:05:17 2008 +0000
@@ -545,7 +545,7 @@
 		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;