diff options
author | Darkvater <darkvater@openttd.org> | 2005-09-18 20:56:44 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-09-18 20:56:44 +0000 |
commit | 8e6a911700de2875db95d254e5a5771e73ceedd7 (patch) | |
tree | 2e474d7261d3d1f3a5a381895f572bd5b78fe606 /clear_cmd.c | |
parent | 3097ee24292dc0c9fc19e98078a0403b96654787 (diff) | |
download | openttd-8e6a911700de2875db95d254e5a5771e73ceedd7.tar.xz |
(svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters
- change a lot of byte player types to PlayerID
- beautify header files, same "#endif /* filename */" ending
Diffstat (limited to 'clear_cmd.c')
-rw-r--r-- | clear_cmd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clear_cmd.c b/clear_cmd.c index c7b1208a9..47967fee4 100644 --- a/clear_cmd.c +++ b/clear_cmd.c @@ -483,12 +483,12 @@ int32 CmdSellLandArea(int x, int y, uint32 flags, uint32 p1, uint32 p2) #include "table/clear_land.h" -void DrawClearLandTile(TileInfo *ti, byte set) +void DrawClearLandTile(const TileInfo *ti, byte set) { DrawGroundSprite(0xF54 + _tileh_to_sprite[ti->tileh] + set * 19); } -void DrawHillyLandTile(TileInfo *ti) +void DrawHillyLandTile(const TileInfo *ti) { if (ti->tileh != 0) { DrawGroundSprite(0xFA0 + _tileh_to_sprite[ti->tileh]); @@ -553,7 +553,7 @@ static uint GetSlopeZ_Clear(TileInfo *ti) return GetPartialZ(ti->x & 0xF, ti->y & 0xF, ti->tileh) + ti->z; } -static uint GetSlopeTileh_Clear(TileInfo *ti) +static uint GetSlopeTileh_Clear(const TileInfo *ti) { return ti->tileh; } @@ -831,7 +831,7 @@ static void GetTileDesc_Clear(TileIndex tile, TileDesc *td) td->owner = GetTileOwner(tile); } -static void ChangeTileOwner_Clear(TileIndex tile, byte old_player, byte new_player) +static void ChangeTileOwner_Clear(TileIndex tile, PlayerID old_player, PlayerID new_player) { return; } |