src/genericunits.cpp
// autoFrameUnit *******
// This function does the automatic frame switch tasks that are supposed
// to be done once per virtual frame. Basically, all it does is to
// make the unit animation to continue until its frame information is
// changed from outside.

autoFrameUnit
This function does the automatic frame switch tasks that are supposed
to be done once per virtual frame. Basically, all it does is to
make the unit animation to continue until its frame information is
changed from outside.
autoFrameUnit This function does the automatic frame switch tasks that are supposed to be done once per virtual frame . Basically all it does is to make the unit animation to continue until its frame information is changed from outside .
bool autoFrameUnit(genericUnitStruct* unit)
{
	frameDataStruct* myUnitFrame=getUnitFrame(unit);
	if (myUnitFrame->autoShowVirtualFrames!=0) {
		unit->vFramesPassed++;
		if (unit->vFramesPassed>=(myUnitFrame->autoShowVirtualFrames)) {
			unit->currentFrame=myUnitFrame->autoNextFrame;
			unit->vFramesPassed=0;
		}
	}
	return true;
}
bool autoFrameUnit ( genericUnitStruct * unit ) { frameDataStruct * myUnitFrame = getUnitFrame ( unit ) ; if ( myUnitFrame -> autoShowVirtualFrames != 0 ) { unit -> vFramesPassed ++ ; if ( unit -> vFramesPassed >= ( myUnitFrame -> autoShowVirtualFrames ) ) { unit -> currentFrame = myUnitFrame -> autoNextFrame ; unit -> vFramesPassed = 0 ; } } return true ; }
autoFrameUnit 
This function does the automatic frame switch tasks that are supposed
to be done once per virtual frame.
autoFrameUnit This function does the automatic frame switch tasks that are supposed to be done once per virtual frame .
// auto frame it if we should...
 // go to the next frame
 // continue auto framing
 // all ok
