From 26f4c9fe24ebbd9502018f1db22e7deaf3f95ad0 Mon Sep 17 00:00:00 2001 From: PatrikLundell Date: Sun, 1 Sep 2024 14:29:35 +0200 Subject: [PATCH] fix explosion in bubble --- src/explosion.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/explosion.cpp b/src/explosion.cpp index 96d3aa43a99de..a0af4c86c3175 100644 --- a/src/explosion.cpp +++ b/src/explosion.cpp @@ -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;