ent_pvs problem

Posted By: txesmi

ent_pvs problem - 09/23/10 18:07

i used this code in my test project (taken from manual):

Code:
i = 1;
        me = ent_pvs ( i, 0 );
        while ( me )
        {
            if ( my.string1 )
            {
                draw_text ( my.string1, 350, i*12, COLOR_WHITE );
             }
            else
            {
                draw_text ( "-------", 350, i*12, COLOR_WHITE );
            }
            
            i++;
            me = ent_pvs ( i, 0 );
         }



Sometimes (almost, not all) this code draws one entitie more than in the count of pvs. All the entities in the level are opaques.

A toke a couple of screenshots:



In both cases there is one text line more than in the count of pvs. In the first example it looks that there are two "FNC_Jugador" (string attached to player entitie) and i'm totally sure that there is only one.

I have done tons of tests to confirm it and it looks like a bug.

Salud!
Posted By: jcl

Re: ent_pvs problem - 09/24/10 08:25

This looks indeed like a bug. But I've just tried your code and it does not happen here.

Can you upload your test project or send it to Support? We'll look into it.
Posted By: txesmi

Re: ent_pvs problem - 09/24/10 08:57

file sent to support!

Best regards
txesmi
Posted By: jcl

Re: ent_pvs problem - 10/04/10 13:43

Thanks for the file. It was a bug - ent_next sometimes returned an entity twice. This will be fixed in the next update.
© 2024 lite-C Forums