Crusader_Decomp/USECODE/REGRET/RE_FLOOR.unk

55 lines
1.5 KiB
Text

/* synthesized appendix for RE_FLOOR */
/* sparse lines above preserve recovered debugger line numbers where available */
/* ===== slot 0x06 gotHit ===== */
function re_floor_gotHit() /* entry=66 class_id=0x0138 slot=0x06 */
{
set_info(0x020C, *(arg_06));
process_exclude();
local_02 = arg_0A;
if (((arg_0A == 1) && (Item.getFrame(arg_06) < 2)) && (Item.getQLo(arg_06) != 0)) {
if (Item.isCentreOn(*(arg_06), local_02)) {
return;
}
else {
/* global_address global_id=0x1E */
suspend;
/* global_address global_id=0x1E */
/* global_address global_id=0x1E */
suspend;
/* global_address global_id=0x1E */
suspend;
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x44 */
/* loop current_var=0xFE string_bytes=0xA loop_type=0x2 */
while (!condition) {
/* loopnext */
}
spawn FREE.slot_3B(pid, 60, 0x00000000);
suspend;
while (!Kernel.getNumProcesses(0x0254, global[0x001E])) {
spawn FREE.slot_3B(pid, 2, 0x00000000);
suspend;
}
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x44 */
/* loop current_var=0xFE string_bytes=0xA loop_type=0x2 */
while (!condition) {
/* loopnext */
}
}
}
return;
}
/* ===== slot 0x09 release ===== */
function re_floor_release() /* entry=66 class_id=0x0138 slot=0x09 */
{
set_info(0x020D, *(arg_06));
process_exclude();
if (Item.getSurfaceWeight(arg_06) == 0) {
FREE.slot_3C(0x0254, global[0x001E]);
}
return;
}