ACF7: Fix possible Lua error spam in intro sequence
This was caused by a race of onGearDelete vs AnimationSetup. If AnimationSetup came first,
it uses old values from the natives table. The solution is to force the code to guarantee
that AnimationSetup always coms after deleting gears in the natives table.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
id="svg2"
version="1.1"
inkscape:version="0.48.4 r9939"
width="250"
height="250"
sodipodi:docname="Cherry.svg"
inkscape:export-filename="/home/randi/.hedgewars/Data/Themes/Candy/Cherry.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<metadata
id="metadata8">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs6">
<linearGradient
inkscape:collect="always"
id="linearGradient8252">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop8254" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop8256" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient8252"
id="linearGradient8275"
gradientUnits="userSpaceOnUse"
x1="427.62885"
y1="204.98993"
x2="426.23254"
y2="268.66971" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient8252-1"
id="linearGradient8275-6"
gradientUnits="userSpaceOnUse"
x1="427.62885"
y1="204.98993"
x2="426.23254"
y2="268.66971" />
<linearGradient
inkscape:collect="always"
id="linearGradient8252-1">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop8254-6" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop8256-2" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient8252-1"
id="linearGradient8515"
gradientUnits="userSpaceOnUse"
x1="427.62885"
y1="204.98993"
x2="426.23254"
y2="268.66971" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient8252"
id="linearGradient8517"
gradientUnits="userSpaceOnUse"
x1="427.62885"
y1="204.98993"
x2="426.23254"
y2="268.66971" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient8252-1"
id="linearGradient3052"
gradientUnits="userSpaceOnUse"
x1="427.62885"
y1="204.98993"
x2="426.23254"
y2="268.66971" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient8252"
id="linearGradient3054"
gradientUnits="userSpaceOnUse"
x1="427.62885"
y1="204.98993"
x2="426.23254"
y2="268.66971" />
</defs>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1024"
inkscape:window-height="522"
id="namedview4"
showgrid="false"
showguides="true"
inkscape:guide-bbox="true"
inkscape:zoom="1.0806021"
inkscape:cx="149.89429"
inkscape:cy="125.74149"
inkscape:window-x="0"
inkscape:window-y="26"
inkscape:window-maximized="1"
inkscape:current-layer="svg2" />
<g
id="g8452"
transform="matrix(0.72101463,0,0,0.75429249,16.473561,54.411294)"
inkscape:export-filename="/home/randi/.hedgewars/Data/Themes/Candy/Cherry.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<g
style="fill:#2b1100"
transform="matrix(1.0271546,0,0,1.0134883,-38.167835,-2.1432386)"
id="g8440">
<g
transform="translate(36.806356,6.6987343)"
id="g8328-9"
style="fill:#2b1100;stroke:none">
<path
sodipodi:nodetypes="ccccscccsccssccscc"
inkscape:connector-curvature="0"
id="path8198-3"
d="m 95.079019,155.31595 c -0.81084,-0.56793 -1.47426,-1.61268 -1.47426,-2.32165 -8.686225,-12.25685 -2.97994,-44.53973 11.276631,-66.295501 23.04038,-41.363086 34.90329,-59.362407 52.40315,-80.8672333 0,-0.789521 0.96845,-6.9663334 1.90258,-5.79740376 1.62051,2.02775046 4.67978,31.52871506 3.41193,36.69126706 -0.97855,2.938667 -2.29359,30.101286 -2.29092,47.320046 1.06061,24.013215 1.98279,37.973305 10.24299,58.905925 0,1.4538 -1.97715,3.4472 -3.41909,3.4472 -1.29033,0 -3.87755,-2.76314 -3.87755,-4.14119 -6.30398,-12.7556 -7.89374,-27.68637 -8.57163,-41.297 -0.7349,-15.090058 1.49015,-65.405474 2.63924,-68.925239 0.97342,-2.981682 0.32885,-14.986129 -0.55192,-14.986129 -0.39762,0 -0.91241,0.596998 -1.144,1.326663 -26.51904,45.013151 -73.263766,94.304055 -57.0465,130.676215 1.16444,0 3.92112,4.22079 2.96164,6.01359 -0.85146,1.59098 -4.35466,1.72675 -6.462371,0.25044 z"
style="fill:#2b1100;fill-opacity:1;stroke:none" />
<g
transform="translate(-260.1692,-20.787228)"
id="g8266-6-0"
style="fill:#2b1100;stroke:none">
<g
transform="translate(146.3651,15.832825)"
id="g8204-2-3-1"
style="fill:#2b1100;stroke:none">
<path
transform="matrix(1.0359105,0,0,0.99125908,95.314222,-2.4256205)"
d="m 226.12777,197.43155 c 0,26.72857 -20.73382,48.39635 -46.3103,48.39635 -25.57647,0 -46.31029,-21.66778 -46.31029,-48.39635 0,-26.72857 20.73382,-48.39635 46.31029,-48.39635 25.57648,0 46.3103,21.66778 46.3103,48.39635 z"
sodipodi:ry="48.396351"
sodipodi:rx="46.310299"
sodipodi:cy="197.43155"
sodipodi:cx="179.81747"
id="path7404-6-2-5-3"
style="fill:#2b1100;fill-opacity:1;stroke:none"
sodipodi:type="arc" />
<path
sodipodi:nodetypes="cscccssc"
inkscape:connector-curvature="0"
id="path8200-7-0-6"
d="m 249.52909,183.97216 c -2.21011,-8.40204 -0.72441,-18.73246 5.21989,-23.63279 11.52924,-9.50441 34.6493,-8.29738 43.79512,-1.0594 1.09359,1.09359 0.36815,2.17799 -1.45704,2.17799 -21.24091,-0.12711 -28.81853,12.12814 -45.2196,22.04515 -0.2542,0 -0.46219,0.42215 -0.46219,0.9381 0,0.62539 -0.31269,0.93809 -0.93809,0.93809 -0.72962,0 -0.93809,-0.3127 -0.93809,-1.40714 z"
style="fill:#2b1100;fill-opacity:1;stroke:none" />
</g>
</g>
<g
transform="translate(-336.95413,-9.7447695)"
id="g8266-1"
style="fill:#2b1100;stroke:none">
<g
transform="translate(146.3651,15.832825)"
id="g8204-2-7"
style="fill:#2b1100;stroke:none">
<path
transform="matrix(1.0359105,0,0,0.99125908,95.314222,-2.4256205)"
d="m 226.12777,197.43155 c 0,26.72857 -20.73382,48.39635 -46.3103,48.39635 -25.57647,0 -46.31029,-21.66778 -46.31029,-48.39635 0,-26.72857 20.73382,-48.39635 46.31029,-48.39635 25.57648,0 46.3103,21.66778 46.3103,48.39635 z"
sodipodi:ry="48.396351"
sodipodi:rx="46.310299"
sodipodi:cy="197.43155"
sodipodi:cx="179.81747"
id="path7404-6-2-1"
style="fill:#2b1100;fill-opacity:1;stroke:none"
sodipodi:type="arc" />
<path
sodipodi:nodetypes="cscccssc"
inkscape:connector-curvature="0"
id="path8200-7-5"
d="m 249.52909,183.97216 c -2.21011,-8.40204 -0.72441,-18.73246 5.21989,-23.63279 11.52924,-9.50441 34.6493,-8.29738 43.79512,-1.0594 1.09359,1.09359 0.36815,2.17799 -1.45704,2.17799 -21.24091,-0.12711 -28.81853,12.12814 -45.2196,22.04515 -0.2542,0 -0.46219,0.42215 -0.46219,0.9381 0,0.62539 -0.31269,0.93809 -0.93809,0.93809 -0.72962,0 -0.93809,-0.3127 -0.93809,-1.40714 z"
style="fill:#2b1100;fill-opacity:1;stroke:none" />
</g>
</g>
</g>
</g>
<g
id="g8328">
<path
style="fill:#502d16;fill-opacity:1;stroke:#28170b"
d="m 95.079019,155.31595 c -0.81084,-0.56793 -1.47426,-1.61268 -1.47426,-2.32165 -8.686225,-12.25685 -2.97994,-44.53973 11.276631,-66.295501 23.04038,-41.363086 34.90329,-59.362407 52.40315,-80.8672333 0,-0.789521 3.87453,-2.7120646 4.8087,-1.543135 1.62051,2.0277505 1.7737,27.2744463 0.50585,32.4369983 -0.97855,2.938667 -2.29359,30.101286 -2.29092,47.320046 1.06061,24.013215 1.98279,37.973305 10.24299,58.905925 0,1.4538 -1.97715,3.4472 -3.41909,3.4472 -1.29033,0 -3.87755,-2.76314 -3.87755,-4.14119 -6.30398,-12.7556 -7.89374,-27.68637 -8.57163,-41.297 -0.7349,-15.090058 1.49015,-65.405474 2.63924,-68.925239 0.97342,-2.981682 0.32885,-14.986129 -0.55192,-14.986129 -0.39762,0 -0.91241,0.596998 -1.144,1.326663 -26.51904,45.013151 -73.263766,94.304055 -57.0465,130.676215 1.16444,0 3.92112,4.22079 2.96164,6.01359 -0.85146,1.59098 -4.35466,1.72675 -6.462371,0.25044 z"
id="path8198"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccscccsccssccscc" />
<g
id="g8266-6"
transform="translate(-260.1692,-20.787228)">
<g
id="g8204-2-3"
transform="translate(146.3651,15.832825)">
<path
sodipodi:type="arc"
style="fill:#990000;fill-opacity:1;stroke:#660000;stroke-width:4;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
id="path7404-6-2-5"
sodipodi:cx="179.81747"
sodipodi:cy="197.43155"
sodipodi:rx="46.310299"
sodipodi:ry="48.396351"
d="m 226.12777,197.43155 c 0,26.72857 -20.73382,48.39635 -46.3103,48.39635 -25.57647,0 -46.31029,-21.66778 -46.31029,-48.39635 0,-26.72857 20.73382,-48.39635 46.31029,-48.39635 25.57648,0 46.3103,21.66778 46.3103,48.39635 z"
transform="matrix(1.0359105,0,0,0.99125908,95.314222,-2.4256205)" />
<path
style="fill:#ff0000;fill-opacity:1;stroke:none"
d="m 249.52909,183.97216 c -2.21011,-8.40204 -0.72441,-18.73246 5.21989,-23.63279 11.52924,-9.50441 34.6493,-8.29738 43.79512,-1.0594 1.09359,1.09359 0.36815,2.17799 -1.45704,2.17799 -21.24091,-0.12711 -28.81853,12.12814 -45.2196,22.04515 -0.2542,0 -0.46219,0.42215 -0.46219,0.9381 0,0.62539 -0.31269,0.93809 -0.93809,0.93809 -0.72962,0 -0.93809,-0.3127 -0.93809,-1.40714 z"
id="path8200-7-0"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cscccssc" />
</g>
<g
id="g8260-8">
<path
style="opacity:0.6;fill:#803300;fill-opacity:1;stroke:none"
d="m 420.73083,258.30217 c -25.85001,-3.60064 -44.8378,-27.6597 -42.25648,-53.54233 1.2172,-12.20473 11.67613,14.30051 20.08813,5.9429 12.50829,-12.42742 11.10841,-12.11494 28.23296,-7.74265 4.37738,1.11765 9.17117,13.78401 14.41869,15.06625 5.20965,1.27299 5.85818,-11.8567 10.50101,-12.97439 10.96313,-2.63921 11.84427,10.2811 15.49475,5.13803 4.62668,-6.51839 7.63182,-18.39656 8.87677,-13.52059 4.37229,17.12456 -0.47473,34.95555 -12.90215,47.46384 -8.10686,8.15963 -18.38207,13.09538 -29.94628,14.38486 -5.43411,0.60594 -6.77297,0.58283 -12.5074,-0.21592 z"
id="path8232-1"
inkscape:connector-curvature="0"
sodipodi:nodetypes="sssssssssss" />
<path
style="opacity:0.30040002;fill:none;stroke:url(#linearGradient3052);stroke-width:0.98528695"
d="m 421.20103,258.03233 c -25.85383,-3.49495 -44.84443,-26.8478 -42.26273,-51.97069 1.21738,-11.84648 11.67786,13.88074 20.0911,5.76846 12.51014,-12.06264 11.11005,-11.75933 28.23714,-7.51538 4.37803,1.08484 9.17253,13.3794 14.42082,14.62401 5.21042,1.23562 5.85905,-11.50867 10.50257,-12.59355 10.96475,-2.56174 11.84602,9.97931 15.49704,4.98721 4.62736,-6.32705 7.63295,-17.85656 8.87808,-13.12372 4.37294,16.6219 -0.4748,33.92949 -12.90406,46.07062 -8.10806,7.92012 -18.38479,12.71099 -29.95071,13.96262 -5.43491,0.58815 -6.77397,0.56572 -12.50925,-0.20958 z"
id="path8232-0-5"
inkscape:connector-curvature="0"
sodipodi:nodetypes="sssssssssss" />
</g>
<path
sodipodi:nodetypes="sccssssss"
inkscape:connector-curvature="0"
id="path8264-9"
d="m 423.84104,258.77802 c -5.99538,-0.51113 -13.2837,-2.53986 -18.34994,-5.10777 22.53424,-3.33287 36.46632,-4.83964 64.38567,-17.68296 -4.08366,6.34267 -9.63878,11.78351 -16.3795,15.93763 -1.38343,0.85257 -2.60144,1.55012 -2.70668,1.55012 -0.10524,0 -1.28671,0.50002 -2.62549,1.11115 -3.69785,1.688 -7.6922,2.98094 -10.42042,3.37299 -0.71519,0.10277 -2.0466,0.31946 -2.95868,0.48154 -2.58957,0.46016 -7.66803,0.61666 -10.94496,0.3373 z"
style="opacity:0.30040002;fill:#1a1a1a;stroke:none" />
</g>
<g
id="g8266"
transform="translate(-336.95413,-9.7447695)">
<g
id="g8204-2"
transform="translate(146.3651,15.832825)">
<path
sodipodi:type="arc"
style="fill:#990000;fill-opacity:1;stroke:#660000;stroke-width:4;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
id="path7404-6-2"
sodipodi:cx="179.81747"
sodipodi:cy="197.43155"
sodipodi:rx="46.310299"
sodipodi:ry="48.396351"
d="m 226.12777,197.43155 c 0,26.72857 -20.73382,48.39635 -46.3103,48.39635 -25.57647,0 -46.31029,-21.66778 -46.31029,-48.39635 0,-26.72857 20.73382,-48.39635 46.31029,-48.39635 25.57648,0 46.3103,21.66778 46.3103,48.39635 z"
transform="matrix(1.0359105,0,0,0.99125908,95.314222,-2.4256205)" />
<path
style="fill:#ff0000;fill-opacity:1;stroke:none"
d="m 249.52909,183.97216 c -2.21011,-8.40204 -0.72441,-18.73246 5.21989,-23.63279 11.52924,-9.50441 34.6493,-8.29738 43.79512,-1.0594 1.09359,1.09359 0.36815,2.17799 -1.45704,2.17799 -21.24091,-0.12711 -28.81853,12.12814 -45.2196,22.04515 -0.2542,0 -0.46219,0.42215 -0.46219,0.9381 0,0.62539 -0.31269,0.93809 -0.93809,0.93809 -0.72962,0 -0.93809,-0.3127 -0.93809,-1.40714 z"
id="path8200-7"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cscccssc" />
</g>
<g
id="g8260">
<path
style="opacity:0.6;fill:#803300;fill-opacity:1;stroke:none"
d="m 420.73083,258.30217 c -25.85001,-3.60064 -44.8378,-27.6597 -42.25648,-53.54233 1.2172,-12.20473 11.67613,14.30051 20.08813,5.9429 12.50829,-12.42742 11.10841,-12.11494 28.23296,-7.74265 4.37738,1.11765 9.17117,13.78401 14.41869,15.06625 5.20965,1.27299 5.85818,-11.8567 10.50101,-12.97439 10.96313,-2.63921 11.84427,10.2811 15.49475,5.13803 4.62668,-6.51839 7.63182,-18.39656 8.87677,-13.52059 4.37229,17.12456 -0.47473,34.95555 -12.90215,47.46384 -8.10686,8.15963 -18.38207,13.09538 -29.94628,14.38486 -5.43411,0.60594 -6.77297,0.58283 -12.5074,-0.21592 z"
id="path8232"
inkscape:connector-curvature="0"
sodipodi:nodetypes="sssssssssss" />
<path
style="opacity:0.30040002;fill:none;stroke:url(#linearGradient3054);stroke-width:0.98528695"
d="m 421.20103,258.03233 c -25.85383,-3.49495 -44.84443,-26.8478 -42.26273,-51.97069 1.21738,-11.84648 11.67786,13.88074 20.0911,5.76846 12.51014,-12.06264 11.11005,-11.75933 28.23714,-7.51538 4.37803,1.08484 9.17253,13.3794 14.42082,14.62401 5.21042,1.23562 5.85905,-11.50867 10.50257,-12.59355 10.96475,-2.56174 11.84602,9.97931 15.49704,4.98721 4.62736,-6.32705 7.63295,-17.85656 8.87808,-13.12372 4.37294,16.6219 -0.4748,33.92949 -12.90406,46.07062 -8.10806,7.92012 -18.38479,12.71099 -29.95071,13.96262 -5.43491,0.58815 -6.77397,0.56572 -12.50925,-0.20958 z"
id="path8232-0"
inkscape:connector-curvature="0"
sodipodi:nodetypes="sssssssssss" />
</g>
<path
sodipodi:nodetypes="sccssssss"
inkscape:connector-curvature="0"
id="path8264"
d="m 423.84104,258.77802 c -5.99538,-0.51113 -13.2837,-2.53986 -18.34994,-5.10777 22.53424,-3.33287 36.46632,-4.83964 64.38567,-17.68296 -4.08366,6.34267 -9.63878,11.78351 -16.3795,15.93763 -1.38343,0.85257 -2.60144,1.55012 -2.70668,1.55012 -0.10524,0 -1.28671,0.50002 -2.62549,1.11115 -3.69785,1.688 -7.6922,2.98094 -10.42042,3.37299 -0.71519,0.10277 -2.0466,0.31946 -2.95868,0.48154 -2.58957,0.46016 -7.66803,0.61666 -10.94496,0.3373 z"
style="opacity:0.30040002;fill:#1a1a1a;stroke:none" />
</g>
</g>
</g>
</svg>