mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r19084) -Codechange: minor coding-style fixups
This commit is contained in:
parent
023fc16894
commit
c5b34444af
|
@ -31,7 +31,7 @@ enum IConsoleHookTypes {
|
||||||
* for general flow of permissions or special action needed in some cases
|
* for general flow of permissions or special action needed in some cases
|
||||||
*/
|
*/
|
||||||
typedef bool IConsoleHook();
|
typedef bool IConsoleHook();
|
||||||
struct IConsoleHooks{
|
struct IConsoleHooks {
|
||||||
IConsoleHook *access; ///< trigger when accessing the command
|
IConsoleHook *access; ///< trigger when accessing the command
|
||||||
IConsoleHook *pre; ///< trigger before the command is executed
|
IConsoleHook *pre; ///< trigger before the command is executed
|
||||||
IConsoleHook *post; ///< trigger after the command is executed
|
IConsoleHook *post; ///< trigger after the command is executed
|
||||||
|
|
|
@ -33,7 +33,7 @@ enum {
|
||||||
MAX_FILE_SLOTS = 64
|
MAX_FILE_SLOTS = 64
|
||||||
};
|
};
|
||||||
|
|
||||||
enum SaveLoadDialogMode{
|
enum SaveLoadDialogMode {
|
||||||
SLD_LOAD_GAME,
|
SLD_LOAD_GAME,
|
||||||
SLD_LOAD_SCENARIO,
|
SLD_LOAD_SCENARIO,
|
||||||
SLD_SAVE_GAME,
|
SLD_SAVE_GAME,
|
||||||
|
|
|
@ -32,7 +32,7 @@ enum {
|
||||||
AYSTAR_DONE
|
AYSTAR_DONE
|
||||||
};
|
};
|
||||||
|
|
||||||
enum{
|
enum {
|
||||||
AYSTAR_INVALID_NODE = -1,
|
AYSTAR_INVALID_NODE = -1,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ struct BinaryHeapNode {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
struct Queue{
|
struct Queue {
|
||||||
/*
|
/*
|
||||||
* Pushes an element into the queue, at the appropriate place for the queue.
|
* Pushes an element into the queue, at the appropriate place for the queue.
|
||||||
* Requires the queue pointer to be of an appropriate type, of course.
|
* Requires the queue pointer to be of an appropriate type, of course.
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
#include "settings_type.h"
|
#include "settings_type.h"
|
||||||
|
|
||||||
/** Container for all information about a text effect */
|
/** Container for all information about a text effect */
|
||||||
struct TextEffect : public ViewportSign{
|
struct TextEffect : public ViewportSign {
|
||||||
uint64 params_1; ///< DParam parameter
|
uint64 params_1; ///< DParam parameter
|
||||||
StringID string_id; ///< String to draw for the text effect, if INVALID_STRING_ID then it's not valid
|
StringID string_id; ///< String to draw for the text effect, if INVALID_STRING_ID then it's not valid
|
||||||
uint8 duration; ///< How long the text effect should stay, in ticks (applies only when mode == TE_RISING)
|
uint8 duration; ///< How long the text effect should stay, in ticks (applies only when mode == TE_RISING)
|
||||||
|
|
|
@ -224,7 +224,7 @@ static void DrawTile_Unmovable(TileInfo *ti)
|
||||||
DrawBridgeMiddle(ti);
|
DrawBridgeMiddle(ti);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case UNMOVABLE_HQ:{
|
case UNMOVABLE_HQ: {
|
||||||
assert(IsCompanyHQ(ti->tile));
|
assert(IsCompanyHQ(ti->tile));
|
||||||
|
|
||||||
PaletteID palette = COMPANY_SPRITE_COLOUR(GetTileOwner(ti->tile));
|
PaletteID palette = COMPANY_SPRITE_COLOUR(GetTileOwner(ti->tile));
|
||||||
|
|
|
@ -63,7 +63,7 @@ class WindowQuartzSubdriver;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
/* Delegate for our NSWindow to send ask for quit on close */
|
/* Delegate for our NSWindow to send ask for quit on close */
|
||||||
@interface OTTD_QuartzWindowDelegate : NSObject{
|
@interface OTTD_QuartzWindowDelegate : NSObject {
|
||||||
WindowQuartzSubdriver *driver;
|
WindowQuartzSubdriver *driver;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ class WindowQuickdrawSubdriver;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
/* Delegate for our NSWindow to send ask for quit on close */
|
/* Delegate for our NSWindow to send ask for quit on close */
|
||||||
@interface OTTD_QuickdrawWindowDelegate : NSObject{
|
@interface OTTD_QuickdrawWindowDelegate : NSObject {
|
||||||
WindowQuickdrawSubdriver *driver;
|
WindowQuickdrawSubdriver *driver;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue