Shape_frame *shape = get_shape(shapenum, framenum); if (shape) paint_shape(xoff, yoff, shape, shapes.get_info(shapenum).has_translucency());
if (!shape) { cout << "NULL SHAPE!!!" << endl; return; } if (!shape->rle) win->copy8(shape->data, 8, 8, xoff - tilesize, yoff - tilesize); else if (!translucent) shape->paint_rle(win->get_ib8(), xoff, yoff); else shape->paint_rle_translucent(win->get_ib8(), xoff, yoff, xforms, sizeof(xforms)/sizeof(xforms[0]));
	void paint_shape(int xoff, int yoff, int shapenum, int framenum)		{		Shape_frame *shape = get_shape(shapenum, framenum);		if (shape)			paint_shape(xoff, yoff, shape, 				shapes.get_info(shapenum).has_translucency());		}