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

61 lines
1.1 KiB
Text

function bubble_enterFastArea() /* entry=109 class_id=0x01D6 slot=0x0F */
{
var
referent, /* [BP+00h] type=0x69 */
counter; /* [BP-02h] type=0x69 */
entry:
set_info(0x021B, *(arg_06));
process_exclude();
block_00EB:
suspend;
FREE.slot_20(pid, 120);
spawn FREE.waitNTimerTicks((retval + 0x00DC), 0x00000000);
suspend;
if Item.isOnScreen(arg_06) goto block_024B;
block_0139:
counter = 0;
block_0140:
if (counter <= 11) goto block_01A3;
block_0148:
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
suspend;
if (counter != 5) goto block_0196;
block_0189:
block_0196:
counter = (1 + counter);
goto block_0140;
block_01A3:
FREE.slot_20(pid, 120);
spawn FREE.waitNTimerTicks((retval + 120), 0x00000000);
suspend;
counter = 12;
block_01E8:
if (counter <= 24) goto block_024B;
block_01F0:
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
suspend;
if (counter != 17) goto block_023E;
block_0231:
block_023E:
counter = (1 + counter);
goto block_01E8;
block_024B:
goto block_00EB;
block_024E:
return;
}