Skip to content

Commit

Permalink
Merge pull request #76113 from PatrikLundell/explosion
Browse files Browse the repository at this point in the history
fix explosion in bubble
  • Loading branch information
Maleclypse authored Sep 4, 2024
2 parents ecef78d + 26f4c9f commit 33970f5
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 33970f5

Please sign in to comment.