engine/source/scriptlib/List.c
/* SIDE EFFECT: Moves list->current to found entity.
use List_Contains if you dont like that.
*/
SIDE EFFECT: Moves list->current to found entity.
use List_Contains if you dont like that.
SIDE EFFECT : Moves list - > current to found entity . use List_Contains if you dont like that .
int List_Includes(List *list, void *e)
{
#ifdef DEBUG
    chklist((List *)list);
#endif
    Node *n = List_GetNodeByValue(list, e);
    if (n)
    {
        list->current = n;
        return 1;
    }
    return 0;
}
int List_Includes ( List * list , void * e ) { #ifdef DEBUG chklist ( ( List * ) list ) ; #endif Node * n = List_GetNodeByValue ( list , e ) ; if ( n ) { list -> current = n ; return 1 ; } return 0 ; }
SIDE EFFECT: Moves list->current to found entity.
SIDE EFFECT : Moves list - > current to found entity .