From 542cf01009755758550816a6c54c87deeeb96c8f Mon Sep 17 00:00:00 2001 From: Surflurer <22912139+Surflurer@users.noreply.github.com> Date: Sat, 7 Sep 2024 19:25:05 +0800 Subject: [PATCH] fix pulp acid corpses --- src/activity_actor.cpp | 2 +- src/game.cpp | 4 ++-- src/handle_action.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/activity_actor.cpp b/src/activity_actor.cpp index ab9f2c1eec86d..1a34016a8419d 100644 --- a/src/activity_actor.cpp +++ b/src/activity_actor.cpp @@ -8023,7 +8023,7 @@ void pulp_activity_actor::do_turn( player_activity &act, Character &you ) const mtype *corpse_mtype = corpse.get_mtype(); const bool acid_immune = you.is_immune_damage( damage_acid ) || you.is_immune_field( fd_acid ); - if( corpse_mtype->bloodType().obj().has_acid && ( !acid_immune || !pulp_acid ) ) { + if( !pulp_acid && corpse_mtype->bloodType().obj().has_acid && !acid_immune ) { //don't smash acid zombies when auto pulping unprotected continue; } diff --git a/src/game.cpp b/src/game.cpp index ccfafa25b63aa..77a814e3766c2 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -10931,11 +10931,11 @@ point game::place_player( const tripoint &dest_loc, bool quick ) } } if( !places.empty() ) { - u.assign_activity( pulp_activity_actor( places, true ) ); + u.assign_activity( pulp_activity_actor( places ) ); } } else { if( corpse_available( u.pos_bub() ) ) { - u.assign_activity( pulp_activity_actor( m.getglobal( u.pos_bub() ), true ) ); + u.assign_activity( pulp_activity_actor( m.getglobal( u.pos_bub() ) ) ); } } } diff --git a/src/handle_action.cpp b/src/handle_action.cpp index 15896c610c267..37fcbacb35ff6 100644 --- a/src/handle_action.cpp +++ b/src/handle_action.cpp @@ -974,7 +974,7 @@ static void smash() } if( should_pulp ) { - player_character.assign_activity( pulp_activity_actor( here.getglobal( smashp ) ) ); + player_character.assign_activity( pulp_activity_actor( here.getglobal( smashp ), true ) ); return; // don't smash terrain if we've smashed a corpse }