aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-04-13 08:47:41 -0400
committerClyne Sullivan <tullivan99@gmail.com>2016-04-13 08:47:41 -0400
commitfa4b6e00fd204998f6011420bdad60477b7a2f12 (patch)
tree4fd37e92f375ddb49e156b07811b8a2fe1ad6c0d /src/config.cpp
parent03130c5bcec3c885a1be005c24e192dfb57f3fe5 (diff)
parentheses
Diffstat (limited to 'src/config.cpp')
-rw-r--r--src/config.cpp8
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);