# HG changeset patch # User Wuzzy # Date 1555783035 -7200 # Node ID cb5ffe17fdf9649c48ec6db3476183a9090053b6 # Parent f16868b40f2da5a651f1f943daaf325d157eccd5 Space Invasion: Fix missing arg in math.min diff -r f16868b40f2d -r cb5ffe17fdf9 share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua --- a/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua Sat Apr 20 16:53:58 2019 +0200 +++ b/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua Sat Apr 20 19:57:15 2019 +0200 @@ -966,7 +966,7 @@ PlaySound(sndDenied) elseif (SI.beam == false) and (SI.shieldHealth > 80) then SI.beam = true - SetVisualGearValues(SI.pShield, GetX(CurrentHedgehog), GetY(CurrentHedgehog), 40, 255, 1, 10, 0, nil, 1, SI.colorShield-0x000000FF - -math.min(SI.shieldHealth)) + SetVisualGearValues(SI.pShield, GetX(CurrentHedgehog), GetY(CurrentHedgehog), 40, 255, 1, 10, 0, nil, 1, SI.colorShield-0x000000FF - -math.min(SI.shieldHealth, 255)) AddCaption( string.format(loc("Shield ON: %d power remaining"), SI.shieldHealth - 80), SI.colorShield, capgrpAmmostate) PlaySound(sndInvulnerable) else