# HG changeset patch # User Wuzzy # Date 1518174492 -3600 # Node ID b075ad6112c92623ef7176a94adf433313e1952f # Parent a84a057194549992a017981dc4759d7644be099c Show subtle heal effect for healing hogs in health reset mode diff -r a84a05719454 -r b075ad6112c9 ChangeLog.txt --- a/ChangeLog.txt Fri Feb 09 11:30:04 2018 +0100 +++ b/ChangeLog.txt Fri Feb 09 12:08:12 2018 +0100 @@ -4,6 +4,7 @@ Game: + New weapon: Minigun + Change weapon icons: Mudball, air mine + + Add visual effect when hogs heal in "reset health" mode * Fix time box being usable in Sudden Death with 0 health decrease * Fix chat input key being sometimes registered twice diff -r a84a05719454 -r b075ad6112c9 hedgewars/uGears.pas --- a/hedgewars/uGears.pas Fri Feb 09 11:30:04 2018 +0100 +++ b/hedgewars/uGears.pas Fri Feb 09 12:08:12 2018 +0100 @@ -542,7 +542,10 @@ t^.PortalCounter:= 0; if ((GameFlags and gfResetHealth) <> 0) and (t^.Kind = gtHedgehog) and (t^.Health < t^.Hedgehog^.InitialHealth) then begin + i:= t^.Hedgehog^.InitialHealth - t^.Health; t^.Health:= t^.Hedgehog^.InitialHealth; + if i > 0 then + HHHeal(t^.Hedgehog, i, false, $00FF0040); RenderHealth(t^.Hedgehog^); end; t:= t^.NextGear