summaryrefslogtreecommitdiff
path: root/openttd.h
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-09-18 20:56:44 +0000
committerDarkvater <darkvater@openttd.org>2005-09-18 20:56:44 +0000
commit8e6a911700de2875db95d254e5a5771e73ceedd7 (patch)
tree2e474d7261d3d1f3a5a381895f572bd5b78fe606 /openttd.h
parent3097ee24292dc0c9fc19e98078a0403b96654787 (diff)
downloadopenttd-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 'openttd.h')
-rw-r--r--openttd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/openttd.h b/openttd.h
index 2648cfe4c..0796778db 100644
--- a/openttd.h
+++ b/openttd.h
@@ -319,14 +319,14 @@ typedef void GetProducedCargoProc(TileIndex tile, byte *b);
typedef void ClickTileProc(TileIndex tile);
typedef void AnimateTileProc(TileIndex tile);
typedef void TileLoopProc(TileIndex tile);
-typedef void ChangeTileOwnerProc(TileIndex tile, byte old_player, byte new_player);
+typedef void ChangeTileOwnerProc(TileIndex tile, PlayerID old_player, PlayerID new_player);
/* Return value has bit 0x2 set, when the vehicle enters a station. Then,
* result << 8 contains the id of the station entered. If the return value has
* bit 0x8 set, the vehicle could not and did not enter the tile. Are there
* other bits that can be set? */
typedef uint32 VehicleEnterTileProc(Vehicle *v, TileIndex tile, int x, int y);
typedef void VehicleLeaveTileProc(Vehicle *v, TileIndex tile, int x, int y);
-typedef uint GetSlopeTilehProc(TileInfo *ti);
+typedef uint GetSlopeTilehProc(const TileInfo *ti);
typedef struct {
DrawTileProc *draw_tile_proc;