tunnelbridge_cmd.c
changeset 3181 58fb7ebd7de1
parent 3180 2123f8062a2d
child 3183 cf71bd234ebd
equal deleted inserted replaced
3180:2123f8062a2d 3181:58fb7ebd7de1
  1000 
  1000 
  1001 		if (!(ti->map5 & 0x40)) {	// bridge ramps
  1001 		if (!(ti->map5 & 0x40)) {	// bridge ramps
  1002 			if (!(BRIDGE_NO_FOUNDATION & (1 << ti->tileh))) {	// no foundations for 0, 3, 6, 9, 12
  1002 			if (!(BRIDGE_NO_FOUNDATION & (1 << ti->tileh))) {	// no foundations for 0, 3, 6, 9, 12
  1003 				int f = GetBridgeFoundation(ti->tileh, ti->map5 & 0x1);	// pass direction
  1003 				int f = GetBridgeFoundation(ti->tileh, ti->map5 & 0x1);	// pass direction
  1004 				if (f) DrawFoundation(ti, f);
  1004 				if (f) DrawFoundation(ti, f);
  1005 
       
  1006 				// default sloped sprites..
       
  1007 				if (ti->tileh != 0) image = SPR_RAIL_TRACK_Y + _track_sloped_sprites[ti->tileh - 1];
       
  1008 			}
  1005 			}
  1009 
  1006 
  1010 			/* Cope for the direction of the bridge */
  1007 			/* Cope for the direction of the bridge */
  1011 			if (HASBIT(ti->map5, 0)) base_offset++;
  1008 			if (HASBIT(ti->map5, 0)) base_offset++;
  1012 
  1009