// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1366 globals integer Test_test_x=0 integer array Test_B_nextFree integer Test_B_firstFree=0 integer array Test_B_typeId integer array Test_B_y endglobals native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function main takes nothing returns nothing call initGlobals() set Test_B_typeId[42] = 1 set Test_test_x = (Test_test_x + Test_B_y[42]) * Test_B_y[42] if Test_B_typeId[42] == 0 then else set Test_B_nextFree[Test_B_firstFree] = 42 set Test_B_firstFree = Test_B_firstFree + 1 set Test_B_typeId[42] = 0 if Test_B_nextFree[Test_B_firstFree - 1] == 42 then call testSuccess() endif endif endfunction function config takes nothing returns nothing endfunction