tunnelbridge_cmd.c
changeset 3533 05537e42e2dc
parent 3518 c1e19f08fc25
child 3534 73b04ea04c28
equal deleted inserted replaced
3532:2eb08a39d78d 3533:05537e42e2dc
   931 
   931 
   932 		if (ice) image += 32;
   932 		if (ice) image += 32;
   933 
   933 
   934 		image += GetTunnelDirection(ti->tile) * 2;
   934 		image += GetTunnelDirection(ti->tile) * 2;
   935 		DrawGroundSprite(image);
   935 		DrawGroundSprite(image);
   936 		if (GB(_m[ti->tile].m3, 0, 3) == RAILTYPE_ELECTRIC) DrawCatenary(ti);
   936 		if (GetRailType(ti->tile)) == RAILTYPE_ELECTRIC) DrawCatenary(ti);
   937 
   937 
   938 		AddSortableSpriteToDraw(image+1, ti->x + 15, ti->y + 15, 1, 1, 8, (byte)ti->z);
   938 		AddSortableSpriteToDraw(image+1, ti->x + 15, ti->y + 15, 1, 1, 8, (byte)ti->z);
   939 	} else if (IsBridge(ti->tile)) { // XXX is this necessary?
   939 	} else if (IsBridge(ti->tile)) { // XXX is this necessary?
   940 		int base_offset;
   940 		int base_offset;
   941 
   941