From: Debian Games Team Date: Fri, 4 Jan 2019 20:07:05 +0000 (+0000) Subject: a7769dbd7088 X-Git-Tag: archive/raspbian/1.0.0-8+rpi1~1^2^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=329e23e2281cd12521f55b832415e5c91b082d6c;p=hedgewars.git a7769dbd7088 # HG changeset patch # User Wuzzy # Date 1543976913 -3600 # Node ID a7769dbd7088504c11673d2d7b1e258838c3ce01 # Parent 02841325495e2f08fa23919f635bf9ad9010cb7f Fix cluster bomb target practice counting clusters as "shots" Gbp-Pq: Name a7769dbd7088.patch --- diff --git a/share/hedgewars/Data/Scripts/TargetPractice.lua b/share/hedgewars/Data/Scripts/TargetPractice.lua index 320aae9..5af0420 100644 --- a/share/hedgewars/Data/Scripts/TargetPractice.lua +++ b/share/hedgewars/Data/Scripts/TargetPractice.lua @@ -226,8 +226,10 @@ function TargetPracticeMission(params) end _G.onGearAdd = function(gear) - if GetGearType(gear) == params.gearType or (params.secGearType and GetGearType(gear) == params.secGearType) then + if GetGearType(gear) == params.gearType then shots = shots + 1 + end + if GetGearType(gear) == params.gearType or (params.secGearType and GetGearType(gear) == params.secGearType) then gearsInGameCount = gearsInGameCount + 1 gearsInGame[gear] = true end