inline void paint_shape(int xoff, int yoff, ShapeID &shape) { paint_shape(xoff, yoff, shape.get_shape(), shape.is_translucent()); }
void paint_shape(int xoff, int yoff, Shape_frame *shape, int translucent = 0) { if (!shape || !shape->data) { std::cout << "NULL SHAPE!!!" << std::endl; return; } if (!shape->rle) win->copy8(shape->data, 8, 8, xoff - c_tilesize, yoff - c_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])); }
	inline void paint_shape(int xoff, int yoff, ShapeID &shape)		{ paint_shape(xoff, yoff, shape.get_shape(), shape.is_translucent()); }