mirror of https://github.com/OpenTTD/OpenTTD
(svn r26088) -Fix (r26086): Windows compilation
parent
3eecd246eb
commit
2fc10b7e04
|
@ -1941,7 +1941,7 @@ void InitializeRailGUI()
|
||||||
* @param second The railtype to compare.
|
* @param second The railtype to compare.
|
||||||
* @return True iff the first should be sorted before the second.
|
* @return True iff the first should be sorted before the second.
|
||||||
*/
|
*/
|
||||||
static CDECL int CompareRailTypes(const DropDownListItem * const *first, const DropDownListItem * const *second)
|
static int CDECL CompareRailTypes(const DropDownListItem * const *first, const DropDownListItem * const *second)
|
||||||
{
|
{
|
||||||
return GetRailTypeInfo((RailType)(*first)->result)->sorting_order - GetRailTypeInfo((RailType)(*second)->result)->sorting_order;
|
return GetRailTypeInfo((RailType)(*first)->result)->sorting_order - GetRailTypeInfo((RailType)(*second)->result)->sorting_order;
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ public:
|
||||||
virtual void Draw(int left, int right, int top, int bottom, bool sel, int bg_colour) const;
|
virtual void Draw(int left, int right, int top, int bottom, bool sel, int bg_colour) const;
|
||||||
virtual StringID String() const { return this->string; }
|
virtual StringID String() const { return this->string; }
|
||||||
|
|
||||||
static CDECL int NatSortFunc(const DropDownListItem * const *first, const DropDownListItem * const *second);
|
static int CDECL NatSortFunc(const DropDownListItem * const *first, const DropDownListItem * const *second);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue