More effective fixes.

We may have to actually do full blown replacements.
This commit is contained in:
Jason Felds
2011-03-19 13:27:48 -04:00
parent 31f7b16f47
commit 7fa50ff351
4 changed files with 15 additions and 5 deletions
+4 -3
View File
@@ -43,10 +43,11 @@ const float MODEL_X_ONE_PLAYER = 0;
const float MODEL_X_TWO_PLAYERS[NUM_PLAYERS] = { +8, -8 }; const float MODEL_X_TWO_PLAYERS[NUM_PLAYERS] = { +8, -8 };
const float MODEL_ROTATIONY_TWO_PLAYERS[NUM_PLAYERS] = { -90, 90 }; const float MODEL_ROTATIONY_TWO_PLAYERS[NUM_PLAYERS] = { -90, 90 };
DancingCharacters::DancingCharacters() DancingCharacters::DancingCharacters(): m_bDrawDangerLight(false),
m_CameraDistance(0), m_CameraPanYStart(0), m_CameraPanYEnd(0),
m_fLookAtHeight(0), m_fCameraHeightStart(0), m_fCameraHeightEnd(0),
m_fThisCameraStartBeat(0), m_fThisCameraEndBeat(0)
{ {
m_bDrawDangerLight = false;
FOREACH_PlayerNumber( p ) FOREACH_PlayerNumber( p )
{ {
m_pCharacter[p] = new Model; m_pCharacter[p] = new Model;
+6 -2
View File
@@ -100,9 +100,13 @@ private:
struct HighScoreList struct HighScoreList
{ {
public: public:
HighScoreList() /**
* @brief Set up the HighScore List with default values.
*
* This used to call Init(), but it's better to be explicit here. */
HighScoreList(): HighGrade(Grade_NoData), iNumTimesPlayed(0)
{ {
Init(); vHighScores.clear();
} }
void Init(); void Init();
+2
View File
@@ -83,6 +83,8 @@ private:
float m_fCurAnimationRate; float m_fCurAnimationRate;
bool m_bLoop; bool m_bLoop;
bool m_bDrawCelShaded; // for Lua models bool m_bDrawCelShaded; // for Lua models
Model& operator=(const Model& rhs);
}; };
#endif #endif
+3
View File
@@ -79,6 +79,9 @@ public:
// Lua // Lua
void PushSelf( lua_State *L ); void PushSelf( lua_State *L );
private:
// TODO: Implement the copy and assignment operators on our own.
}; };
#endif #endif