interresting bug

Bug reports and feature requests. New features can only be added to the current development version. Bug-fixes may be back-ported.

Current release: 099 / Current development: 100
Post Reply
RusseL
Forum Regular
Posts: 375
Joined: Fri Feb 20, 2009 8:30 pm

interresting bug

Post 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.
RusseL
Forum Regular
Posts: 375
Joined: Fri Feb 20, 2009 8:30 pm

Re: interresting bug

Post by RusseL »

topic up. the bug still there.
Post Reply