diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-04-13 08:47:22 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-04-13 08:47:22 -0400 |
commit | 8b0f74445b509d8e59ec89854f2e149ad1948d4e (patch) | |
tree | ce7e6a7a62468ed88e885d1fff64e72eb18db433 /src/config.cpp | |
parent | 51f57a9eb06cd0a4a967915ee60a323fc85fafba (diff) | |
parent | fa4b6e00fd204998f6011420bdad60477b7a2f12 (diff) |
Merge branch 'master' of https://github.com/tcsullivan/gamedev
Diffstat (limited to 'src/config.cpp')
-rw-r--r-- | src/config.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config.cpp b/src/config.cpp index b8a483d..a2acc03 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -21,7 +21,7 @@ XMLElement *vol; namespace config { - void read( void ) { + void read(void) { unsigned int uval; float fval; bool bval; @@ -61,19 +61,19 @@ namespace config { ui::initFonts(); ui::setFontFace(xml.FirstChildElement("font")->Attribute("path")); - if ( xml.FirstChildElement("debug") ) + if (xml.FirstChildElement("debug")) ui::debug = ui::posFlag = true; config::update(); } - void update( void ) { + void update(void) { Mix_Volume(0,VOLUME_MASTER); Mix_Volume(1,VOLUME_SFX * (VOLUME_MASTER/100.0f)); Mix_VolumeMusic(VOLUME_MUSIC * (VOLUME_MASTER/100.0f)); } - void save( void ) { + void save(void) { vol->FirstChildElement("master")->SetAttribute("volume",VOLUME_MASTER); vol->FirstChildElement("music")->SetAttribute("volume",VOLUME_MUSIC); vol->FirstChildElement("sfx")->SetAttribute("volume", VOLUME_SFX); |