core_data/maint:coding style, playSound

This commit is contained in:
andy5995
2018-09-22 14:19:49 -05:00
parent 3143d0c7b6
commit ccb507a3f4
2 changed files with 5 additions and 5 deletions

View File

@@ -1782,7 +1782,7 @@ namespace Glest {
PlaySoundClip::~PlaySoundClip(void) {
};
StaticSound *PlaySoundClip::getSound(const std::string& PlaySoundVal) {
StaticSound *PlaySoundClip::getSound(const std::string& playSoundVal) {
CoreData coreData;
int loadAttemptLookupKey = coreData.tsyst_COUNT + 6;
if (coreData.itemLoadAttempted.find(loadAttemptLookupKey) ==
@@ -1792,7 +1792,7 @@ namespace Glest {
try {
string data_path = coreData.getDataPath();
PlaySound.load(getGameCustomCoreDataPath(data_path, PlaySoundVal));
playSound.load(getGameCustomCoreDataPath(data_path, playSoundVal));
} catch (const megaglest_runtime_error & ex) {
message(ex.what(),
GlobalStaticFlags::getIsNonGraphicalModeEnabled(),
@@ -1800,7 +1800,7 @@ namespace Glest {
}
}
return &PlaySound;
return &playSound;
}
// ================== PRIVATE ========================

View File

@@ -336,9 +336,9 @@ namespace Glest {
class PlaySoundClip {
private:
StaticSound PlaySound;
StaticSound playSound;
public:
StaticSound * getSound(const std::string& PlaySoundVal);
StaticSound * getSound(const std::string& playSoundVal);
static const string sfxAttention;
static const string sfxHighlight;
static const string sfxNewServer;