Page 1 of 1

interresting bug

Posted: Sat Nov 17, 2012 6:43 am
by RusseL
AI Fight function:

Code: Select all

while (opponent and !opponent.dead and !opponent.hidden and !opponent.concealed and Distance(me, opponent) < 12)
        in_combat_event_loop(opponent);

         say ("pass2");
	 ev := os::wait_for_event( 1 );

endwhile

Code: Select all

function in_combat_event_loop(opponent)
endfunction
If function in_combat_event_loop is empty - NPC disappear before he says "pass2". Completely, like it gonna be killed. Spawnpoint gets activated (it means death.src was activated). But no corpse, nothing.

If i add anything into in_combat_event_loop, some small thing like say("blabla"); or return 0; it works.

I use linux.

Re: interresting bug

Posted: Wed Dec 12, 2012 7:08 am
by RusseL
topic up. the bug still there.