diff options
author | Einar Johan Trøan Sømåen | 2012-07-26 22:20:55 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-26 22:20:55 +0200 |
commit | 3a49f2bad407787ef65d04c5f9ae423485629b41 (patch) | |
tree | f7ceed0ac885724b5569302bc23ba3f027705fb1 /engines/wintermute/base/base_game.cpp | |
parent | 496a3938c451683845e73fa9b2cba20dadddfe21 (diff) | |
download | scummvm-rg350-3a49f2bad407787ef65d04c5f9ae423485629b41.tar.gz scummvm-rg350-3a49f2bad407787ef65d04c5f9ae423485629b41.tar.bz2 scummvm-rg350-3a49f2bad407787ef65d04c5f9ae423485629b41.zip |
WINTERMUTE: More variable/function renaming VarName->varName
Diffstat (limited to 'engines/wintermute/base/base_game.cpp')
-rw-r--r-- | engines/wintermute/base/base_game.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/engines/wintermute/base/base_game.cpp b/engines/wintermute/base/base_game.cpp index 402b7294aa..20ed358ec2 100644 --- a/engines/wintermute/base/base_game.cpp +++ b/engines/wintermute/base/base_game.cpp @@ -1051,14 +1051,14 @@ bool BaseGame::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack const char *filename = stack->pop()->getString();
ScValue *val = stack->pop();
- bool ClearOld;
+ bool clearOld;
if (val->isNULL()) {
- ClearOld = true;
+ clearOld = true;
} else {
- ClearOld = val->getBool();
+ clearOld = val->getBool();
}
- if (DID_FAIL(_stringTable->loadFile(filename, ClearOld))) {
+ if (DID_FAIL(_stringTable->loadFile(filename, clearOld))) {
stack->pushBool(false);
} else {
stack->pushBool(true);
@@ -1530,7 +1530,7 @@ bool BaseGame::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack bool dropFrames = stack->pop()->getBool(true);
ScValue *valSub = stack->pop();
- const char *SubtitleFile = valSub->isNULL() ? NULL : valSub->getString();
+ const char *subtitleFile = valSub->isNULL() ? NULL : valSub->getString();
if (type < (int)VID_PLAY_POS || type > (int)VID_PLAY_CENTER) {
type = (int)VID_PLAY_STRETCH;
@@ -1538,7 +1538,7 @@ bool BaseGame::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack delete _theoraPlayer;
_theoraPlayer = new VideoTheoraPlayer(this);
- if (_theoraPlayer && DID_SUCCEED(_theoraPlayer->initialize(filename, SubtitleFile))) {
+ if (_theoraPlayer && DID_SUCCEED(_theoraPlayer->initialize(filename, subtitleFile))) {
_theoraPlayer->_dontDropFrames = !dropFrames;
if (DID_SUCCEED(_theoraPlayer->play((TVideoPlayback)type, xVal, yVal, true, freezeMusic))) {
stack->pushBool(true);
@@ -1649,8 +1649,8 @@ bool BaseGame::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack //////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "IsSaveSlotUsed") == 0) {
stack->correctParams(1);
- int Slot = stack->pop()->getInt();
- stack->pushBool(isSaveSlotUsed(Slot));
+ int slot = stack->pop()->getInt();
+ stack->pushBool(isSaveSlotUsed(slot));
return STATUS_OK;
}
@@ -2162,7 +2162,7 @@ bool BaseGame::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack //////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "AccOutputText") == 0) {
stack->correctParams(2);
- /* const char *Str = */ stack->pop()->getString();
+ /* const char *str = */ stack->pop()->getString();
/* int type = */ stack->pop()->getInt();
// do nothing
stack->pushNULL();
@@ -2225,9 +2225,9 @@ bool BaseGame::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack crc checksum = crc_finalize(remainder);
if (asHex) {
- char Hex[100];
- sprintf(Hex, "%x", checksum);
- stack->pushString(Hex);
+ char hex[100];
+ sprintf(hex, "%x", checksum);
+ stack->pushString(hex);
} else {
stack->pushInt(checksum);
}
@@ -3032,7 +3032,7 @@ bool BaseGame::validObject(BaseObject *object) { //////////////////////////////////////////////////////////////////////////
-bool BaseGame::ExternalCall(ScScript *script, ScStack *stack, ScStack *thisStack, char *name) {
+bool BaseGame::externalCall(ScScript *script, ScStack *stack, ScStack *thisStack, char *name) {
ScValue *thisObj;
//////////////////////////////////////////////////////////////////////////
@@ -4266,7 +4266,7 @@ bool BaseGame::displayIndicator() { //////////////////////////////////////////////////////////////////////////
bool BaseGame::updateMusicCrossfade() {
- /* byte GlobMusicVol = _soundMgr->getVolumePercent(SOUND_MUSIC); */
+ /* byte globMusicVol = _soundMgr->getVolumePercent(SOUND_MUSIC); */
if (!_musicCrossfadeRunning) {
return STATUS_OK;
|