mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Remove useless attributes m_globalVol, set/getGlobalSound from Game
These do basically nothing. The only time they're used is getGlobalSound() in an if-statement in main.cpp, but all that if-conditional does is call setGlobalSound() anyway, which is something that doesn't really have any side effects. So I'm removing these vars to simplify the code.
This commit is contained in:
@@ -84,16 +84,6 @@ public:
|
||||
~Game(void);
|
||||
|
||||
|
||||
void setGlobalSoundVol(const float _vol)
|
||||
{
|
||||
m_globalVol = _vol;
|
||||
}
|
||||
float getGlobalSoundVol()
|
||||
{
|
||||
return m_globalVol;
|
||||
}
|
||||
|
||||
|
||||
int crewrescued();
|
||||
|
||||
std::string unrescued();
|
||||
@@ -194,10 +184,6 @@ public:
|
||||
int mutebutton;
|
||||
bool musicmuted;
|
||||
int musicmutebutton;
|
||||
private:
|
||||
float m_globalVol;
|
||||
|
||||
public:
|
||||
|
||||
int tapleft, tapright;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user