src/water_cmd.cpp
changeset 7335 141c6b86ec1f
parent 7333 e48228e44be8
child 7389 08d6a6265ced
equal deleted inserted replaced
7334:ed9a43cf642a 7335:141c6b86ec1f
   498 	Slope tileh = GetTileSlope(tile, &z);
   498 	Slope tileh = GetTileSlope(tile, &z);
   499 
   499 
   500 	return z + GetPartialZ(x & 0xF, y & 0xF, tileh);
   500 	return z + GetPartialZ(x & 0xF, y & 0xF, tileh);
   501 }
   501 }
   502 
   502 
   503 static Slope GetSlopeTileh_Water(TileIndex tile, Slope tileh)
   503 static Foundation GetFoundation_Water(TileIndex tile, Slope tileh)
   504 {
   504 {
   505 	return tileh;
   505 	return FOUNDATION_NONE;
   506 }
   506 }
   507 
   507 
   508 static void GetAcceptedCargo_Water(TileIndex tile, AcceptedCargo ac)
   508 static void GetAcceptedCargo_Water(TileIndex tile, AcceptedCargo ac)
   509 {
   509 {
   510 	/* not used */
   510 	/* not used */
   810 	AnimateTile_Water,        /* animate_tile_proc */
   810 	AnimateTile_Water,        /* animate_tile_proc */
   811 	TileLoop_Water,           /* tile_loop_clear */
   811 	TileLoop_Water,           /* tile_loop_clear */
   812 	ChangeTileOwner_Water,    /* change_tile_owner_clear */
   812 	ChangeTileOwner_Water,    /* change_tile_owner_clear */
   813 	NULL,                     /* get_produced_cargo_proc */
   813 	NULL,                     /* get_produced_cargo_proc */
   814 	VehicleEnter_Water,       /* vehicle_enter_tile_proc */
   814 	VehicleEnter_Water,       /* vehicle_enter_tile_proc */
   815 	GetSlopeTileh_Water,      /* get_slope_tileh_proc */
   815 	GetFoundation_Water,      /* get_foundation_proc */
   816 };
   816 };