From f7abff5f963cddfdd134ac52ffd8e72e3ed88f0c Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 14 Nov 2005 19:48:04 +0000 Subject: (svn r3181) -Bracing -Indentation -Whitespace -DeMorgan's Law -Test with NULL or 0 for non-booleans -'\0' instead of 0 for chars -Remove redundantly redundant comments (like DoFoo(); // Do foo) -Join multiple short lines with a single statement -Split single lines with multiple statements -Avoid assignments in if --- table/engines.h | 2 +- table/sprites.h | 37 +++++++++++++++++++------------------ 2 files changed, 20 insertions(+), 19 deletions(-) (limited to 'table') diff --git a/table/engines.h b/table/engines.h index b1ace97c6..df9b9bc25 100644 --- a/table/engines.h +++ b/table/engines.h @@ -469,7 +469,7 @@ const AircraftVehicleInfo orig_aircraft_vehicle_info[NUM_AIRCRAFT_ENGINES] = { { 6, 18, 240, 3, SND_09_JET, 40, 74, 30, 200 }, /* 5 */ { 2, 17, 150, 1, SND_09_JET, 35, 74, 15, 100 }, /* 6 */ { 2, 18, 245, 3, SND_09_JET, 40, 74, 30, 150 }, /* 7 */ - { 3, 19, 192, 3, SND_09_JET, 40, 74, 40, 220 }, /* 8 */ + { 3, 19, 192, 3, SND_09_JET, 40, 74, 40, 220 }, /* 8 */ { 3, 20, 190, 3, SND_09_JET, 40, 74, 25, 230 }, /* 9 */ { 2, 16, 135, 3, SND_09_JET, 35, 74, 10, 95 }, /* 10 */ { 2, 18, 240, 3, SND_09_JET, 40, 74, 35, 170 }, /* 11 */ diff --git a/table/sprites.h b/table/sprites.h index 8ee56c20d..663fbdd28 100644 --- a/table/sprites.h +++ b/table/sprites.h @@ -51,7 +51,7 @@ enum Sprites { SPR_CANALS_BASE = 5382, SPR_SLOPES_BASE = SPR_CANALS_BASE + 70, SPR_AUTORAIL_BASE = SPR_SLOPES_BASE + 78, - SPR_OPENTTD_BASE = SPR_AUTORAIL_BASE + 55, // can be lowered once autorail.grf is finalized + SPR_OPENTTD_BASE = SPR_AUTORAIL_BASE + 55, SPR_BLOT = SPR_OPENTTD_BASE + 29, // colored circle (mainly used as vehicle profit marker and for sever compatibility) @@ -963,7 +963,6 @@ typedef enum CursorSprites { SPR_CURSOR_EW_MAGLEV = 1273, SPR_CURSOR_NWSE_MAGLEV = 1274, - SPR_CURSOR_RAIL_DEPOT = 1296, SPR_CURSOR_RAIL_STATION = 1300, SPR_CURSOR_TUNNEL_RAIL = 2434, @@ -975,6 +974,8 @@ typedef enum CursorSprites { SPR_CURSOR_AUTOMAGLEV = SPR_OPENTTD_BASE + 6, SPR_CURSOR_WAYPOINT = SPR_OPENTTD_BASE + 7, + + SPR_CURSOR_RAIL_DEPOT = 1296, SPR_CURSOR_MONO_DEPOT = SPR_OPENTTD_BASE + 11, SPR_CURSOR_MAGLEV_DEPOT = SPR_OPENTTD_BASE + 12, @@ -1004,15 +1005,15 @@ enum AnimCursors { }; /** - * Bitmask setup. For the graphics system, 32 bits are used to define - * the sprite to be displayed. This variable contains various information:

- *