git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10373 c06c8d41-db1a-0410-9941-cceddc491573
E3CW3CQAJ7YBNCOKWNYPABX7TWFQAIFVS5YJSVCZASPLJSAOFLEAC 3Z3XT5LGULCCEN2BVCYLB6NPSZUV2TNICMT6U4EULBLSUVWHR5LAC FXV67NBWHDI6CTLQBHVVTAUF2H7OJUHIXE7EPN3OW3AODPFSXAWAC HBXWZNXAJ7LUX7FYUIHQYBTRMWVJC6CAQQL3NNZHK5ETLIFEZJ7QC BCL6BB7HZXAJCAGKK6MZ7AGWNLFP46FIXRVGJ6LR3QLDE6XFQGVAC VYZPQ3JKIXSKIBKCAX6QHETK6OWOOCXI2Z5XV55F2RRMJZVKOHHQC EWU6VHNZ72GMGR5KY4EQ56SEHUJGLQG5OGIHPZWAZAO64FAY2YZQC SUPZRPO5SRF66J3CZTVKC6UBKKBLFB4WWADFJCLNEXCYIQKLXLCAC U4EZJ7TIJLEYKFYGH6T4MHHDTN3JTO4KGCI3BLZKDNVKV3TVHUUQC G5FMBUMNRJOHBPVOWV2TDZKO3CB4K5TSASXB4ONIYXZGUN3GJWQQC void corpsify(unsigned int corpse_width, unsigned int corpse_height,unsigned int cut_separate, unsigned int cut_height,const tile_colour &wound);
void corpsify(int corpse_width, int corpse_height,int cut_separate, int cut_height, const tile_colour &wound);
void tile::corpsify(unsigned int corpse_width, unsigned int corpse_height,unsigned int cut_separate, unsigned int cut_height,const tile_colour &wound)
void tile::corpsify(int corpse_width, int corpse_height,int cut_separate, int cut_height, const tile_colour &wound)
unsigned int xmax = xmin + bbwidth - 1;unsigned int ymax = ymin + bbheight - 1;unsigned int centerx = (xmax + xmin) / 2;unsigned int centery = (ymax + ymin) / 2;
const int xmax = xmin + bbwidth - 1;const int ymax = ymin + bbheight - 1;const int centerx = (xmax + xmin) / 2;const int centery = (ymax + ymin) / 2;
float width_scale = (float)m_width / (float)corpse_width;float height_scale = (float)m_height / (float)corpse_height;float image_scale = std::max(width_scale, height_scale);
const float width_scale = (float)m_width / (float)corpse_width;const float height_scale = (float)m_height / (float)corpse_height;const float image_scale = std::max(width_scale, height_scale);
unsigned int x1 = (int)((x - m_width/2)*image_scale) + centerx;unsigned int y1 = (int)((y - m_height/2)*height_proj*image_scale)+ centery;
int x1 = (int)((x - m_width/2)*image_scale) + centerx;int y1 = (int)((y - m_height/2)*height_proj*image_scale) + centery;