Fix some GCC warnings.

Order is apparently important with variables.
This commit is contained in:
Jason Felds
2011-03-16 19:02:52 -04:00
parent a636981383
commit 2179f18d09
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -179,16 +179,15 @@ public:
float m_fPerspectiveTilt, m_SpeedfPerspectiveTilt; // -1 = near, 0 = overhead, +1 = space float m_fPerspectiveTilt, m_SpeedfPerspectiveTilt; // -1 = near, 0 = overhead, +1 = space
float m_fSkew, m_SpeedfSkew; // 0 = vanish point is in center of player, 1 = vanish point is in center of screen float m_fSkew, m_SpeedfSkew; // 0 = vanish point is in center of player, 1 = vanish point is in center of screen
float m_fRandomSpeed, m_SpeedfRandomSpeed;
/* If this is > 0, then the player must have life above this value at the end of /* If this is > 0, then the player must have life above this value at the end of
* the song to pass. This is independent of SongOptions::m_FailType. */ * the song to pass. This is independent of SongOptions::m_FailType. */
float m_fPassmark, m_SpeedfPassmark; float m_fPassmark, m_SpeedfPassmark;
float m_fRandomSpeed, m_SpeedfRandomSpeed;
bool m_bTurns[NUM_TURNS]; bool m_bTurns[NUM_TURNS];
bool m_bTransforms[NUM_TRANSFORMS]; bool m_bTransforms[NUM_TRANSFORMS];
bool m_bMuteOnError; bool m_bMuteOnError;
ScoreDisplay m_ScoreDisplay;
/** @brief How can the Player fail a song? */ /** @brief How can the Player fail a song? */
enum FailType { enum FailType {
FAIL_IMMEDIATE=0, /**< fail immediately when life touches 0 */ FAIL_IMMEDIATE=0, /**< fail immediately when life touches 0 */
@@ -198,6 +197,7 @@ public:
}; };
/** @brief The method for which a player can fail a song. */ /** @brief The method for which a player can fail a song. */
FailType m_FailType; FailType m_FailType;
ScoreDisplay m_ScoreDisplay;
/** /**
* @brief The Noteskin to use. * @brief The Noteskin to use.
+2 -2
View File
@@ -22,10 +22,10 @@ public:
}; };
DrainType m_DrainType; // only used with LifeBar DrainType m_DrainType; // only used with LifeBar
int m_iBatteryLives; int m_iBatteryLives;
float m_fMusicRate, m_SpeedfMusicRate;
float m_fHaste, m_SpeedfHaste;
bool m_bAssistClap; bool m_bAssistClap;
bool m_bAssistMetronome; bool m_bAssistMetronome;
float m_fMusicRate, m_SpeedfMusicRate;
float m_fHaste, m_SpeedfHaste;
enum AutosyncType { enum AutosyncType {
AUTOSYNC_OFF, AUTOSYNC_OFF,
AUTOSYNC_SONG, AUTOSYNC_SONG,