Crusader_Decomp/USECODE/EUSECODE_extracted/pseudocode/PRISLEAN/slot_0F_enterFastArea.txt

83 lines
1.6 KiB
Text

function prislean_enterFastArea() /* entry=161 class_id=0x02E8 slot=0x0F */
{
var
referent, /* [BP+00h] type=0x69 */
counter; /* [BP-02h] type=0x69 */
entry:
set_info(0x021B, *(arg_06));
process_exclude();
spawn FREE.waitNTimerTicks(pid, 100, 0x00000000);
suspend;
block_0111:
suspend;
FREE.slot_20(pid, 100, 100);
spawn FREE.waitNTimerTicks(retval, 0x00000000);
suspend;
if (Item.getFrame(arg_06) < 6) goto block_0240;
block_0164:
counter = Item.getFrame(arg_06);
block_0172:
if (counter <= 5) goto block_01BA;
block_017A:
spawn FREE.waitNTimerTicks(pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
goto block_0172;
block_01BA:
FREE.slot_20(pid, 100, 100);
spawn FREE.waitNTimerTicks(retval, 0x00000000);
suspend;
counter = 0;
block_01F2:
if (counter <= 5) goto block_023D;
block_01FA:
spawn FREE.waitNTimerTicks(pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
goto block_01F2;
block_023D:
goto block_0319;
block_0240:
counter = Item.getFrame(arg_06);
block_024E:
if (counter <= 12) goto block_0296;
block_0256:
spawn FREE.waitNTimerTicks(pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
goto block_024E;
block_0296:
FREE.slot_20(pid, 100, 100);
spawn FREE.waitNTimerTicks(retval, 0x00000000);
suspend;
counter = 0;
block_02CE:
if (counter <= 5) goto block_0319;
block_02D6:
spawn FREE.waitNTimerTicks(pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
goto block_02CE;
block_0319:
goto block_0111;
block_031C:
return;
}