src/onyxentities.c
// NOTE: Returns >0 if e1 should be processed after e2.
Returns >0 if e1 should be processed after e2.
Returns > 0 if e1 should be processed after e2 .
static i32 entity_compare(Entity* e1, Entity* e2) {
    if (e1->state != e2->state)
        return (i32) e1->state - (i32) e2->state;
    else
        return (i32) e1->type - (i32) e2->type;
}
static i32 entity_compare ( Entity * e1 , Entity * e2 ) { if ( e1 -> state != e2 -> state ) return ( i32 ) e1 -> state - ( i32 ) e2 -> state ; else return ( i32 ) e1 -> type - ( i32 ) e2 -> type ; }
NOTE: Returns >0 if e1 should be processed after e2.
NOTE : Returns > 0 if e1 should be processed after e2 .