issue #44: fix some bugs

This commit is contained in:
Ming 2010-08-12 09:55:37 +00:00
parent 6e06b04bec
commit d4355b2d23
2 changed files with 8 additions and 0 deletions

View File

@ -35,6 +35,7 @@ namespace cocos2d {
CCCamera::CCCamera(void)
{
init();
}
CCCamera::~CCCamera(void)
@ -48,6 +49,11 @@ char * CCCamera::description(void)
return ret;
}
void CCCamera::init(void)
{
restore();
}
void CCCamera::restore(void)
{
m_fEyeX = m_fEyeY = 0.0f;

View File

@ -50,6 +50,8 @@ public:
CCCamera(void);
~CCCamera(void);
void init(void);
char * description(void);
// sets the dirty value