water_cmd.c
changeset 2537 5e4ca74e995a
parent 2517 6e3832ddd0f6
child 2548 49c8a096033f
equal deleted inserted replaced
2536:634914d741b4 2537:5e4ca74e995a
   458 		DrawSprite(wdts->image + PLAYER_SPRITE_COLOR(_local_player), x + pt.x, y + pt.y);
   458 		DrawSprite(wdts->image + PLAYER_SPRITE_COLOR(_local_player), x + pt.x, y + pt.y);
   459 	}
   459 	}
   460 }
   460 }
   461 
   461 
   462 
   462 
   463 static uint GetSlopeZ_Water(TileInfo *ti)
   463 static uint GetSlopeZ_Water(const TileInfo* ti)
   464 {
   464 {
   465 	return GetPartialZ(ti->x&0xF, ti->y&0xF, ti->tileh) + ti->z;
   465 	return GetPartialZ(ti->x & 0xF, ti->y & 0xF, ti->tileh) + ti->z;
   466 }
   466 }
   467 
   467 
   468 static uint GetSlopeTileh_Water(const TileInfo *ti)
   468 static uint GetSlopeTileh_Water(const TileInfo *ti)
   469 {
   469 {
   470 	return ti->tileh;
   470 	return ti->tileh;