mirror of
https://github.com/glest/glest-source.git
synced 2025-08-19 22:51:24 +02:00
core_data/maint:coding style, playSound
This commit is contained in:
@@ -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 ========================
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user