tunnelbridge_cmd.c
changeset 39 d177340ed556
parent 38 d20549a6ea13
child 84 1e0721c29bad
equal deleted inserted replaced
38:d20549a6ea13 39:d177340ed556
  1196 	// default case
  1196 	// default case
  1197 	z = ti->z;
  1197 	z = ti->z;
  1198 	return GetPartialZ(ti->x&0xF, ti->y&0xF, ti->tileh) + z;
  1198 	return GetPartialZ(ti->x&0xF, ti->y&0xF, ti->tileh) + z;
  1199 }
  1199 }
  1200 
  1200 
       
  1201 static uint GetSlopeTileh_TunnelBridge(TileInfo *ti) {
       
  1202 	// not accurate, but good enough for slope graphics drawing
       
  1203 	return 0;
       
  1204 }
       
  1205 
       
  1206 
  1201 static void GetAcceptedCargo_TunnelBridge(uint tile, AcceptedCargo *ac)
  1207 static void GetAcceptedCargo_TunnelBridge(uint tile, AcceptedCargo *ac)
  1202 {
  1208 {
  1203 	/* not used */
  1209 	/* not used */
  1204 }
  1210 }
  1205 
  1211 
  1476 	TileLoop_TunnelBridge,					/* tile_loop_clear */
  1482 	TileLoop_TunnelBridge,					/* tile_loop_clear */
  1477 	ChangeTileOwner_TunnelBridge,		/* change_tile_owner_clear */
  1483 	ChangeTileOwner_TunnelBridge,		/* change_tile_owner_clear */
  1478 	NULL,														/* get_produced_cargo_proc */
  1484 	NULL,														/* get_produced_cargo_proc */
  1479 	VehicleEnter_TunnelBridge,			/* vehicle_enter_tile_proc */
  1485 	VehicleEnter_TunnelBridge,			/* vehicle_enter_tile_proc */
  1480 	NULL,														/* vehicle_leave_tile_proc */
  1486 	NULL,														/* vehicle_leave_tile_proc */
       
  1487 	GetSlopeTileh_TunnelBridge,			/* get_slope_tileh_proc */
  1481 };
  1488 };