From 8e6a911700de2875db95d254e5a5771e73ceedd7 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sun, 18 Sep 2005 20:56:44 +0000 Subject: (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 --- clear_cmd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'clear_cmd.c') 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; } -- cgit v1.2.3-54-g00ecf