Fix Stealth and Firewalk icons being swapped

This commit is contained in:
2023-01-29 19:39:13 -05:00
parent 8f6450417b
commit 491a81fdda
2 changed files with 3 additions and 3 deletions

View File

@@ -641,7 +641,7 @@ void put_text_bar(std::string str) {
to_rect.width() = 12;
to_rect.height() = 12;
if(univ.party.status[ePartyStatus::STEALTH] > 0) {
rect_draw_some_item(status_gworld, get_stat_effect_rect(25), text_bar_gworld, to_rect, sf::BlendAlpha);
rect_draw_some_item(status_gworld, get_stat_effect_rect(26), text_bar_gworld, to_rect, sf::BlendAlpha);
to_rect.offset(-15, 0);
}
if(univ.party.status[ePartyStatus::FLIGHT] > 0) {
@@ -653,7 +653,7 @@ void put_text_bar(std::string str) {
to_rect.offset(-15, 0);
}
if(univ.party.status[ePartyStatus::FIREWALK] > 0) {
rect_draw_some_item(status_gworld, get_stat_effect_rect(26), text_bar_gworld, to_rect, sf::BlendAlpha);
rect_draw_some_item(status_gworld, get_stat_effect_rect(25), text_bar_gworld, to_rect, sf::BlendAlpha);
to_rect.offset(-15, 0);
}
}

View File

@@ -777,7 +777,7 @@ pic_num_t choose_status_effect(short cur, bool party, cDialog* parent) {
};
static const char*const pstatus[] = {"Stealth", "Flight", "Detect Life", "Firewalk"};
static const std::vector<pic_num_t> status_pics = {4,2,0,6,5,9,10,11,12,13,14,15,16,17,20};
static const std::vector<pic_num_t> pstatus_pics = {25,23,24,26};
static const std::vector<pic_num_t> pstatus_pics = {26,23,24,25};
short prev = cur;
if(cur < 0 || cur >= (party ? pstatus_pics : status_pics).size()) cur = 0;
cPictChoice pic_dlg(party ? pstatus_pics : status_pics, PIC_STATUS, parent);