Mercurial > hg > openttd
changeset 14513:e99a75a10e29 draft
(svn r19084) -Codechange: minor coding-style fixups
author | smatz <smatz@openttd.org> |
---|---|
date | Wed, 10 Feb 2010 17:37:47 +0000 |
parents | e53f601a581c |
children | 38960c0add73 |
files | src/console_internal.h src/fios.h src/pathfinder/npf/aystar.h src/pathfinder/npf/queue.h src/texteff.cpp src/unmovable_cmd.cpp src/video/cocoa/wnd_quartz.mm src/video/cocoa/wnd_quickdraw.mm |
diffstat | 8 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/console_internal.h +++ b/src/console_internal.h @@ -31,7 +31,7 @@ * for general flow of permissions or special action needed in some cases */ typedef bool IConsoleHook(); -struct IConsoleHooks{ +struct IConsoleHooks { IConsoleHook *access; ///< trigger when accessing the command IConsoleHook *pre; ///< trigger before the command is executed IConsoleHook *post; ///< trigger after the command is executed
--- a/src/fios.h +++ b/src/fios.h @@ -33,7 +33,7 @@ MAX_FILE_SLOTS = 64 }; -enum SaveLoadDialogMode{ +enum SaveLoadDialogMode { SLD_LOAD_GAME, SLD_LOAD_SCENARIO, SLD_SAVE_GAME,
--- a/src/pathfinder/npf/aystar.h +++ b/src/pathfinder/npf/aystar.h @@ -32,7 +32,7 @@ AYSTAR_DONE }; -enum{ +enum { AYSTAR_INVALID_NODE = -1, };
--- a/src/pathfinder/npf/queue.h +++ b/src/pathfinder/npf/queue.h @@ -37,7 +37,7 @@ }; -struct Queue{ +struct 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.
--- a/src/texteff.cpp +++ b/src/texteff.cpp @@ -18,7 +18,7 @@ #include "settings_type.h" /** Container for all information about a text effect */ -struct TextEffect : public ViewportSign{ +struct TextEffect : public ViewportSign { uint64 params_1; ///< DParam parameter 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)
--- a/src/unmovable_cmd.cpp +++ b/src/unmovable_cmd.cpp @@ -224,7 +224,7 @@ DrawBridgeMiddle(ti); break; - case UNMOVABLE_HQ:{ + case UNMOVABLE_HQ: { assert(IsCompanyHQ(ti->tile)); PaletteID palette = COMPANY_SPRITE_COLOUR(GetTileOwner(ti->tile));
--- a/src/video/cocoa/wnd_quartz.mm +++ b/src/video/cocoa/wnd_quartz.mm @@ -63,7 +63,7 @@ @end /* Delegate for our NSWindow to send ask for quit on close */ -@interface OTTD_QuartzWindowDelegate : NSObject{ +@interface OTTD_QuartzWindowDelegate : NSObject { WindowQuartzSubdriver *driver; }
--- a/src/video/cocoa/wnd_quickdraw.mm +++ b/src/video/cocoa/wnd_quickdraw.mm @@ -63,7 +63,7 @@ @end /* Delegate for our NSWindow to send ask for quit on close */ -@interface OTTD_QuickdrawWindowDelegate : NSObject{ +@interface OTTD_QuickdrawWindowDelegate : NSObject { WindowQuickdrawSubdriver *driver; }