cocos2d/cocos2d-iphone — pull request #198 by kstenerud (2012-04-05 00:22:17+00:00)
Title: Make startAnimation and stopAnimation idempotent in CCDirector

Since CCDirector is a view controller, and is also a singleton, it causes some problems when moving between UIKit and cocos2d. I've made a custom view controller to get around this, but CCDirector still gets view notifications, and shuts itself down (stopAnimation). Thus, I need to be able to safely call startAnimation from my own view controller without worrying about it being active already (and throwing an assert as a result).