Fix white first character name and item charges being shown as boxes
This commit is contained in:
@@ -151,6 +151,7 @@ void put_pc_screen()
|
|||||||
i = calc_day();
|
i = calc_day();
|
||||||
sprintf((char *) to_draw, "%d", i);
|
sprintf((char *) to_draw, "%d", i);
|
||||||
win_draw_string( pc_stats_gworld,small_erase_rects[2],to_draw,0,10);
|
win_draw_string( pc_stats_gworld,small_erase_rects[2],to_draw,0,10);
|
||||||
|
TEXT.colour = sf::Color::Black;
|
||||||
|
|
||||||
for (i = 0; i < 6; i++) {
|
for (i = 0; i < 6; i++) {
|
||||||
if (univ.party[i].main_status != 0) {
|
if (univ.party[i].main_status != 0) {
|
||||||
@@ -345,7 +346,7 @@ void put_item_screen(short screen_num,short suppress_buttons)
|
|||||||
sout << univ.party[pc].items[i_num].full_name << ' ';
|
sout << univ.party[pc].items[i_num].full_name << ' ';
|
||||||
if ((univ.party[pc].items[i_num].charges > 0) && (univ.party[pc].items[i_num].type != 2)
|
if ((univ.party[pc].items[i_num].charges > 0) && (univ.party[pc].items[i_num].type != 2)
|
||||||
&& (stat_screen_mode <= 1))
|
&& (stat_screen_mode <= 1))
|
||||||
sout << '(' << univ.party[pc].items[i_num].charges << ')';
|
sout << '(' << int(univ.party[pc].items[i_num].charges) << ')';
|
||||||
}
|
}
|
||||||
dest_rect.left -= 2;
|
dest_rect.left -= 2;
|
||||||
win_draw_string(item_stats_gworld,dest_rect,sout.str().c_str(),0,10);
|
win_draw_string(item_stats_gworld,dest_rect,sout.str().c_str(),0,10);
|
||||||
|
|||||||
Reference in New Issue
Block a user