summaryrefslogtreecommitdiff
path: root/water_cmd.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-12 21:49:38 +0000
committerdarkvater <darkvater@openttd.org>2004-09-12 21:49:38 +0000
commite295e46e3eccd58626ce2b02aab24b96c025636b (patch)
tree849dacad3729ee4bbd27669505a1932ca301592d /water_cmd.c
parent1b498bca57457a5f46cc43baef225687e312692b (diff)
downloadopenttd-e295e46e3eccd58626ce2b02aab24b96c025636b.tar.xz
(svn r223) -Fix: Const correctness and miscellaneous fixes. Thank you Tron for your diligent fixing of warnings (and some possibly bugs) (Tron)
-CodeLayout: Remove trailing spaces and Windows linebreaks
Diffstat (limited to 'water_cmd.c')
-rw-r--r--water_cmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/water_cmd.c b/water_cmd.c
index 0b9297869..8aad805ae 100644
--- a/water_cmd.c
+++ b/water_cmd.c
@@ -383,10 +383,10 @@ static void DrawWaterStuff(TileInfo *ti, const byte *t, uint32 palette, uint bas
const WaterDrawTileStruct *wdts;
uint32 image;
- DrawGroundSprite(*(uint16*)t);
+ DrawGroundSprite(*(const uint16*)t);
t += sizeof(uint16);
- for(wdts = (WaterDrawTileStruct *)t; (byte)wdts->delta_x != 0x80; wdts++) {
+ for(wdts = (const WaterDrawTileStruct *)t; (byte)wdts->delta_x != 0x80; wdts++) {
image = wdts->image + base;
if (_display_opt & DO_TRANS_BUILDINGS) {
image |= palette;
@@ -429,10 +429,10 @@ void DrawShipDepotSprite(int x, int y, int image)
const WaterDrawTileStruct *wdts;
t = _shipdepot_display_seq[image];
- DrawSprite(*(uint16*)t, x, y);
+ DrawSprite(*(const uint16*)t, x, y);
t += sizeof(uint16);
- for(wdts = (WaterDrawTileStruct *)t; (byte)wdts->delta_x != 0x80; wdts++) {
+ for(wdts = (const WaterDrawTileStruct *)t; (byte)wdts->delta_x != 0x80; wdts++) {
Point pt = RemapCoords(wdts->delta_x, wdts->delta_y, wdts->delta_z);
DrawSprite(wdts->image + PLAYER_SPRITE_COLOR(_local_player), x + pt.x, y + pt.y);
}