Skip to content

Commit

Permalink
fix explosion in bubble
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikLundell committed Sep 1, 2024
1 parent 0527e71 commit 26f4c9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/explosion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,8 @@ void explosion( const Creature *source, const tripoint &p, const explosion_data
void _make_explosion( map *m, const Creature *source, const tripoint_bub_ms &p,
const explosion_data &ex )
{
if( get_map().inbounds( m->getabs( p ) ) ) {
tripoint_bub_ms bubble_pos = get_map().bub_from_abs( m->getabs( p ) );
if( get_map().inbounds( m->getglobal( p ) ) ) {
tripoint_bub_ms bubble_pos = get_map().bub_from_abs( m->getglobal( p ) );
int noise = ex.power * ( ex.fire ? 2 : 10 );
noise = ( noise > ex.max_noise ) ? ex.max_noise : noise;

Expand Down

0 comments on commit 26f4c9f

Please sign in to comment.