mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r16081) -Doc: Adding/fixing some Doxygen comments.
This commit is contained in:
parent
98e5e70ade
commit
22db0905d8
@ -28,6 +28,7 @@
|
|||||||
#include "table/sprites.h"
|
#include "table/sprites.h"
|
||||||
#include "table/strings.h"
|
#include "table/strings.h"
|
||||||
|
|
||||||
|
/** Widget numbers of the order window. */
|
||||||
enum OrderWindowWidgets {
|
enum OrderWindowWidgets {
|
||||||
ORDER_WIDGET_CLOSEBOX = 0,
|
ORDER_WIDGET_CLOSEBOX = 0,
|
||||||
ORDER_WIDGET_CAPTION,
|
ORDER_WIDGET_CAPTION,
|
||||||
@ -375,6 +376,7 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile)
|
|||||||
return order;
|
return order;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Order window code. */
|
||||||
struct OrdersWindow : public Window {
|
struct OrdersWindow : public Window {
|
||||||
private:
|
private:
|
||||||
static const int ORDER_LIST_LINE_HEIGHT = 10; ///< Height of a line in the ORDER_WIDGET_ORDER_LIST panel.
|
static const int ORDER_LIST_LINE_HEIGHT = 10; ///< Height of a line in the ORDER_WIDGET_ORDER_LIST panel.
|
||||||
@ -406,9 +408,7 @@ private:
|
|||||||
* the position of the scrollbar.
|
* the position of the scrollbar.
|
||||||
*
|
*
|
||||||
* @param y Y-value of the click relative to the window origin
|
* @param y Y-value of the click relative to the window origin
|
||||||
* @param v current vehicle
|
* @return The selected order if the order is valid, else return \c INVALID_ORDER.
|
||||||
* @return the new selected order if the order is valid else return that
|
|
||||||
* an invalid one has been selected.
|
|
||||||
*/
|
*/
|
||||||
int GetOrderFromPt(int y)
|
int GetOrderFromPt(int y)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user