Disclaimer: My answer is for Lite-C!

The thing is, calling functions is expensive, you can tweak Superkus version a tiny bit by either inlining flower_animate() or by making flower_animate loop over the ENTITYs. And because we all love premature optimization, we can also do another thing: Since [] is just a substitution for the plus operator, we can take advantage of that by simply taking the pointer to the first flower entity and just incrementing it, thus maximizing cache hits on some older CPUs:

Code:
ENTITY *flowers[1024];
int numFlowers = 0;

action flower()
{
	flowers[numFlowers ++] = me;
}

void flower_animate()
{
	ENTITY *ent = *flowers;
	ENTITY *lastFlower = ent + numFlowers;
	
	while(ent < lastFlower)
	{
		ent->skill20 = (ent->skill20 + 3 * time_step) % 100;
		ent_animate(ent, "wobble", ent->skill20, ANM_CYCLE);

		ent ++;
	}
}



Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com