int ents = 0; ENTITY* seed = ent_createlayer("", SKY, 0); ENTITY* ent = ptr_first(seed); while (ent) { if (ent != seed) { error(ent->type); // "skycube+6.tga" ents++; } ent = ent.link.next; } if (seed) ptr_remove(seed); printf("sky entities = %d", ents);
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de