game[outdoor]: try to draw correctly wide/large monster...
This commit is contained in:
@@ -123,12 +123,12 @@ void draw_monsters() {
|
||||
rect_draw_some_item(src_gw, source_rect, terrain_screen_gworld,to_rect, sf::BlendAlpha);
|
||||
}
|
||||
}
|
||||
if(picture_wanted < 1000) {
|
||||
else {
|
||||
for(short k = 0; k < width * height; k++) {
|
||||
source_rect = get_monster_template_rect(picture_wanted,(enc.direction < 4) ? 0 : 1,k);
|
||||
to_rect = monst_rects[(width - 1) * 2 + height - 1][k];
|
||||
to_rect.offset(13 + 28 * where_draw.x,13 + 36 * where_draw.y);
|
||||
int which_sheet = m_pic_index[picture_wanted].i / 20;
|
||||
int which_sheet = (m_pic_index[picture_wanted].i+k) / 20;
|
||||
Texture& monst_gworld = *ResMgr::textures.get("monst" + std::to_string(1 + which_sheet));
|
||||
rect_draw_some_item(monst_gworld, source_rect, terrain_screen_gworld,to_rect, sf::BlendAlpha);
|
||||
}
|
||||
|
Reference in New Issue
Block a user