Skip to content

Commit

Permalink
Corrected variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Night-Pryanik committed Dec 21, 2024
1 parent 7e2ecbc commit 147e7aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1711,14 +1711,14 @@ units::temperature_delta get_heat_radiation( const tripoint_bub_ms &location )
continue;
}
if( player_character.pos_bub() == location ) {
bool gas_can_spread = true;
bool heat_can_spread = true;
for( const tripoint_bub_ms &p : line_to( player_character.pos_bub(), dest ) ) {
if( !here.has_flag( ter_furn_flag::TFLAG_PERMEABLE, p ) && here.impassable( p ) ) {
gas_can_spread = false;
heat_can_spread = false;
break;
}
}
if( !gas_can_spread ) {
if( !heat_can_spread ) {
continue;
}
} else if( !here.sees( location, dest, -1 ) ) {
Expand Down

0 comments on commit 147e7aa

Please sign in to comment.