Skip to content

Commit

Permalink
fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
KorGgenT committed Jan 21, 2020
1 parent b235d51 commit b9d9f80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/computer_session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,9 @@ void computer_session::activate_function( computer_action action )
capa = std::min( sewage.charges, capa );
if( elem.contents.empty() ) {
elem.put_in( sewage );
elem.contents.front().charges = capa;
elem.contents.legacy_front().charges = capa;
} else {
elem.contents.front().charges += capa;
elem.contents.legacy_front().charges += capa;
}
found_item = true;
break;
Expand Down Expand Up @@ -654,7 +654,7 @@ void computer_session::activate_function( computer_action action )
g->u.moves -= 30;
item software( miss->get_item_id(), 0 );
software.mission_id = comp.mission_id;
usb->contents.clear();
usb->contents.clear_items();
usb->put_in( software );
print_line( _( "Software downloaded." ) );
} else {
Expand All @@ -674,10 +674,10 @@ void computer_session::activate_function( computer_action action )
print_error( _( "ERROR: Please remove all but one sample from centrifuge." ) );
} else if( items.only_item().contents.empty() ) {
print_error( _( "ERROR: Please only use container with blood sample." ) );
} else if( items.only_item().contents.front().typeId() != "blood" ) {
} else if( items.only_item().contents.legacy_front().typeId() != "blood" ) {
print_error( _( "ERROR: Please only use blood samples." ) );
} else { // Success!
const item &blood = items.only_item().contents.front();
const item &blood = items.only_item().contents.legacy_front();
const mtype *mt = blood.get_mtype();
if( mt == nullptr || mt->id == mtype_id::NULL_ID() ) {
print_line( _( "Result: Human blood, no pathogens found." ) );
Expand All @@ -691,7 +691,7 @@ void computer_session::activate_function( computer_action action )
if( query_bool( _( "Download data?" ) ) ) {
if( item *const usb = pick_usb() ) {
item software( "software_blood_data", 0 );
usb->contents.clear();
usb->contents.clear_items();
usb->put_in( software );
print_line( _( "Software downloaded." ) );
} else {
Expand Down Expand Up @@ -1248,7 +1248,7 @@ void computer_session::activate_failure( computer_failure_type fail )
print_error( _( "ERROR: Please use blood-contained samples." ) );
} else if( items.only_item().contents.empty() ) {
print_error( _( "ERROR: Blood draw kit, empty." ) );
} else if( items.only_item().contents.front().typeId() != "blood" ) {
} else if( items.only_item().contents.legacy_front().typeId() != "blood" ) {
print_error( _( "ERROR: Please only use blood samples." ) );
} else {
print_error( _( "ERROR: Blood sample destroyed." ) );
Expand Down
2 changes: 1 addition & 1 deletion src/profession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ std::list<item> profession::items( bool male, const std::vector<trait_id> &trait
for( item &it : result ) {
clear_faults( it );
if( it.is_holster() && it.contents.size() == 1 ) {
clear_faults( it.contents.front() );
clear_faults( it.contents.legacy_front() );
}
if( it.has_flag( "VARSIZE" ) ) {
it.item_tags.insert( "FIT" );
Expand Down

0 comments on commit b9d9f80

Please sign in to comment.