diff options
author | tron <tron@openttd.org> | 2005-11-13 13:43:55 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-11-13 13:43:55 +0000 |
commit | 81e5b16d7178f0ee5584201cb2f6c8e36742354f (patch) | |
tree | 385ce09aff7cf19e072a627e83e91fe8a5f3fb3b /ship_gui.c | |
parent | d97f56b4e2b6159e696128932da28b89a13a30e0 (diff) | |
download | openttd-81e5b16d7178f0ee5584201cb2f6c8e36742354f.tar.xz |
(svn r3172) static, const
Diffstat (limited to 'ship_gui.c')
-rw-r--r-- | ship_gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ship_gui.c b/ship_gui.c index 553af1a7d..1ce2503e3 100644 --- a/ship_gui.c +++ b/ship_gui.c @@ -28,7 +28,7 @@ void DrawShipPurchaseInfo(int x, int y, EngineID engine_number) { YearMonthDay ymd; const ShipVehicleInfo *svi = ShipVehInfo(engine_number); - Engine *e; + const Engine* e; /* Purchase cost - Max speed */ SetDParam(0, svi->base_cost * (_price.ship_base>>3)>>5); @@ -301,7 +301,7 @@ static void ShowShipDetailsWindow(const Vehicle* v) void CcBuildShip(bool success, TileIndex tile, uint32 p1, uint32 p2) { - Vehicle *v; + const Vehicle* v; if (!success) return; v = GetVehicle(_new_ship_id); @@ -755,7 +755,7 @@ static void HandleCloneVehClick(const Vehicle* v, const Window* w) static void ClonePlaceObj(TileIndex tile, const Window* w) { - Vehicle* v = CheckMouseOverVehicle(); + const Vehicle* v = CheckMouseOverVehicle(); if (v != NULL) HandleCloneVehClick(v, w); } |