Skip to content

Commit

Permalink
Update src/crafting.cpp
Browse files Browse the repository at this point in the history
Co-Authored-By: ZhilkinSerg <ZhilkinSerg@users.noreply.github.com>
  • Loading branch information
SeventhSandwich and ZhilkinSerg authored Feb 6, 2020
1 parent 88043ab commit 4c2a7a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/crafting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2014,7 +2014,9 @@ bool player::disassemble( item_location target, bool interactive )
}

if( activity.id() != ACT_DISASSEMBLE ) {
if (num_dis != 0) { assign_activity(ACT_DISASSEMBLE, r.time * num_dis); }
if( num_dis != 0 ) {
assign_activity( ACT_DISASSEMBLE, r.time * num_dis );
}
else { assign_activity(ACT_DISASSEMBLE, r.time); }
} else if( activity.moves_left <= 0 ) {
activity.moves_left = r.time;
Expand Down

0 comments on commit 4c2a7a7

Please sign in to comment.