Skip to content

Commit

Permalink
Merge pull request CleverRaven#34804 from OzoneH3/repair_msg
Browse files Browse the repository at this point in the history
Fix: Dialogs not showing while tailoring.
  • Loading branch information
ZhilkinSerg authored Oct 16, 2019
2 parents 080fc8d + 0c68685 commit 5fc6532
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/activity_handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2394,6 +2394,7 @@ void activity_handlers::repair_item_finish( player_activity *act, player *p )

// target selection and validation.
while( act->targets.size() < 2 ) {
g->draw();
auto item_loc = game_menus::inv::repair( *p, actor, &main_tool );

if( item_loc == item_location::nowhere ) {
Expand All @@ -2410,7 +2411,6 @@ void activity_handlers::repair_item_finish( player_activity *act, player *p )
const item &fix = *act->targets[1];

if( repeat == REPEAT_INIT ) {
g->draw();
const int level = p->get_skill_level( actor->used_skill );
auto action_type = actor->default_action( fix, level );
if( action_type == repair_item_actor::RT_NOTHING ) {
Expand Down Expand Up @@ -2440,6 +2440,7 @@ void activity_handlers::repair_item_finish( player_activity *act, player *p )
act->values.resize( 1 );
}
do {
g->draw();
repeat = repeat_menu( title, repeat );

if( repeat == REPEAT_CANCEL ) {
Expand Down

0 comments on commit 5fc6532

Please sign in to comment.