Skip to content

Commit

Permalink
Merge pull request #75470 from RenechCDDA/cramped_space_sleep
Browse files Browse the repository at this point in the history
Cramped space doesn't prevent sleep
  • Loading branch information
akrieger authored Aug 5, 2024
2 parents dadaa89 + 11ba11d commit 5bec8cc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5682,10 +5682,6 @@ Character::comfort_response_t Character::base_comfort_value( const tripoint_bub_
}
}
comfort += boardable ? max_boardable_confort : -here.move_cost( p );

if( has_effect( effect_cramped_space ) ) {
comfort = static_cast<int>( comfort_level::impossible );
}
}
// Not in a vehicle, start checking furniture/terrain/traps at this point in decreasing order
else if( furn_at_pos != furn_str_id::NULL_ID() ) {
Expand Down

0 comments on commit 5bec8cc

Please sign in to comment.