From e38b101b3f0bf3b1a998f1c559dd5dcad9c63359 Mon Sep 17 00:00:00 2001 From: Gustavo Ramos Rehermann Date: Sat, 3 Feb 2024 04:40:51 -0300 Subject: [PATCH] Remove DiscardInventory call in MushMatch.Killed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes behaviour of Piñata and similar mutators, which use the inventory linked list on ScoreKill, which will be empty if DiscardInventory is called in the GameInfo's Killed overload function (which it shouldn't be, anyways - at least it isn't in DeathMatchPlus.Killed!). --- Classes/MushMatch.uc | 2 -- buildconfig.sh | 2 +- latest-changes.md | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Classes/MushMatch.uc b/Classes/MushMatch.uc index c4198e6..deb38eb 100644 --- a/Classes/MushMatch.uc +++ b/Classes/MushMatch.uc @@ -360,8 +360,6 @@ function Killed(Pawn Killer, Pawn Other, name DamageType) hMom = vect(0,0,0); dmg = 32767; - DiscardInventory(Other); - if (Killer != None && Killer.bIsPlayer) { LastTauntTime = Level.TimeSeconds + 6; // auto-taunts also make it easy to spot killers, disable momentarily } diff --git a/buildconfig.sh b/buildconfig.sh index 7f6c4d3..77a4457 100644 --- a/buildconfig.sh +++ b/buildconfig.sh @@ -6,7 +6,7 @@ export name="Mush Match" export package=MushMatch export version=1.3.5-pre3 -export build=20240601 +export build=20240602 export debug=1 export makeint=1 export incl_readme=1 diff --git a/latest-changes.md b/latest-changes.md index 3774b0d..3aecd74 100644 --- a/latest-changes.md +++ b/latest-changes.md @@ -3,3 +3,4 @@ Implemented changes in Mush Match **v1.3.5** listed below. * Make special weapons (Sporifier, Beacon Launcher) only self-destruct if not owned. +* Fix behaviour with Piñata-esque mutators that use the Inventory linked list on ScoreKill