# HG changeset patch # User Wuzzy # Date 1492915633 -7200 # Node ID a2049a645e297bb3b4746ac7a523b6519cde372c # Parent 6b34067a6344d2572c6943f15aed5cf88699b307 HedgeEditor: Fix maximum ammos sprite ID being 1 too low diff -r 6b34067a6344 -r a2049a645e29 share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua --- a/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua Sun Apr 23 00:21:11 2017 +0200 +++ b/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua Sun Apr 23 04:47:13 2017 +0200 @@ -577,12 +577,8 @@ sprSpeechCorner, sprSpeechEdge, sprSpeechTail, sprThoughtCorner, sprThoughtEdge, sprThoughtTail, sprShoutCorner, sprShoutEdge, sprShoutTail, sprCustom1, sprCustom2, } - local reducedSpriteIDArrayFrames = { - 4, 8, 1, 1, 1, - 57, 57, 3, 4, 8, 1, - 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, - } + -- Set in onGameInit + local reducedSpriteIDArrayFrames local reducedSpriteTextArray = { "sprAmRubber", "sprAmGirder", "sprTargetBee", "sprIceTexture", "sprHHTelepMask", @@ -3367,6 +3363,13 @@ end end + reducedSpriteIDArrayFrames = { + 4, 8, 1, 1, 1, + AmmoTypeMax, AmmoTypeMax, 3, 4, 8, 1, + 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, + } + Explosives = 0 MinesNum = 0