mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-25 14:40:10 +01:00
(svn r13683) -Codechange: privatize a function that is not used outside of the class who calls it
This commit is contained in:
parent
cb452bcc7d
commit
33150af3e2
@ -113,6 +113,21 @@ uint GetMaskOfTownActions(int *nump, PlayerID pid, const Town *t)
|
|||||||
return buttons;
|
return buttons;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct TownAuthorityWindow : Window {
|
||||||
|
private:
|
||||||
|
Town *town;
|
||||||
|
int sel_index;
|
||||||
|
|
||||||
|
enum TownAuthorityWidget {
|
||||||
|
TWA_CLOSEBOX = 0,
|
||||||
|
TWA_CAPTION,
|
||||||
|
TWA_RATING_INFO,
|
||||||
|
TWA_COMMAND_LIST,
|
||||||
|
TWA_SCROLLBAR,
|
||||||
|
TWA_ACTION_INFO,
|
||||||
|
TWA_EXECUTE,
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the position of the Nth set bit.
|
* Get the position of the Nth set bit.
|
||||||
*
|
*
|
||||||
@ -134,21 +149,6 @@ static int GetNthSetBit(uint32 bits, int n)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct TownAuthorityWindow : Window {
|
|
||||||
private:
|
|
||||||
Town *town;
|
|
||||||
int sel_index;
|
|
||||||
|
|
||||||
enum TownAuthorityWidget {
|
|
||||||
TWA_CLOSEBOX = 0,
|
|
||||||
TWA_CAPTION,
|
|
||||||
TWA_RATING_INFO,
|
|
||||||
TWA_COMMAND_LIST,
|
|
||||||
TWA_SCROLLBAR,
|
|
||||||
TWA_ACTION_INFO,
|
|
||||||
TWA_EXECUTE,
|
|
||||||
};
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TownAuthorityWindow(const WindowDesc *desc, WindowNumber window_number) :
|
TownAuthorityWindow(const WindowDesc *desc, WindowNumber window_number) :
|
||||||
Window(desc, window_number), sel_index(-1)
|
Window(desc, window_number), sel_index(-1)
|
||||||
|
Loading…
Reference in New Issue
Block a user