aboutsummaryrefslogtreecommitdiff
path: root/saga
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-03-07 11:49:59 +0000
committerTorbjörn Andersson2005-03-07 11:49:59 +0000
commitef43877b6baa9da6d9684240849ab68907c85c7e (patch)
tree104329f832f7ce7f16610634e7405f0d6f0f1b7e /saga
parent17562c097a18b6cf55e26e1dfb55f0eb4b7ec34f (diff)
downloadscummvm-rg350-ef43877b6baa9da6d9684240849ab68907c85c7e.tar.gz
scummvm-rg350-ef43877b6baa9da6d9684240849ab68907c85c7e.tar.bz2
scummvm-rg350-ef43877b6baa9da6d9684240849ab68907c85c7e.zip
Indentation
svn-id: r17028
Diffstat (limited to 'saga')
-rw-r--r--saga/saga.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/saga/saga.cpp b/saga/saga.cpp
index 4be6e71c3a..1a339088e5 100644
--- a/saga/saga.cpp
+++ b/saga/saga.cpp
@@ -354,17 +354,17 @@ const char *SagaEngine::getObjectName(uint16 objectId) {
ObjectData *obj;
const HitZone *hitZone;
switch (objectTypeId(objectId)) {
- case kGameObjectObject:
- obj = _actor->getObj(objectId);
- _script->_mainStrings.getString(obj->nameIndex);
- break;
- case kGameObjectActor:
- actor = _actor->getActor(objectId);
- return _actor->_actorsStrings.getString(actor->nameIndex);
- break;
- case kGameObjectHitZone:
- hitZone = _vm->_scene->_objectMap->getHitZone(objectIdToIndex(objectId));
- return _vm->_scene->_sceneStrings.getString(hitZone->getNameIndex());
+ case kGameObjectObject:
+ obj = _actor->getObj(objectId);
+ _script->_mainStrings.getString(obj->nameIndex);
+ break;
+ case kGameObjectActor:
+ actor = _actor->getActor(objectId);
+ return _actor->_actorsStrings.getString(actor->nameIndex);
+ break;
+ case kGameObjectHitZone:
+ hitZone = _vm->_scene->_objectMap->getHitZone(objectIdToIndex(objectId));
+ return _vm->_scene->_sceneStrings.getString(hitZone->getNameIndex());
}
warning("SagaEngine::getObjectName name not found for 0x%X", objectId);
return NULL;
@@ -384,26 +384,26 @@ const char *SagaEngine::getTextString(int textStringId) {
void SagaEngine::getExcuseInfo(int verb, const char *&textString, int &soundResourceId) {
textString = NULL; // TODO: i18n it !
switch (verb) {
- case kVerbPickUp:
- textString = "I can't pick that up.";
- soundResourceId = RID_BOAR_VOICE_007;
- break;
- case kVerbLookAt:
- textString = "I see nothing special about it.";
- soundResourceId = RID_BOAR_VOICE_006;
- break;
- case kVerbOpen:
- textString = "There's no place to open it.";
- soundResourceId = RID_BOAR_VOICE_000;
- break;
- case kVerbClose:
- textString = "There's no opening to close.";
- soundResourceId = RID_BOAR_VOICE_002;
- break;
- case kVerbUse:
- textString = "I don't know how to do that.";
- soundResourceId = RID_BOAR_VOICE_005;
- break;
+ case kVerbPickUp:
+ textString = "I can't pick that up.";
+ soundResourceId = RID_BOAR_VOICE_007;
+ break;
+ case kVerbLookAt:
+ textString = "I see nothing special about it.";
+ soundResourceId = RID_BOAR_VOICE_006;
+ break;
+ case kVerbOpen:
+ textString = "There's no place to open it.";
+ soundResourceId = RID_BOAR_VOICE_000;
+ break;
+ case kVerbClose:
+ textString = "There's no opening to close.";
+ soundResourceId = RID_BOAR_VOICE_002;
+ break;
+ case kVerbUse:
+ textString = "I don't know how to do that.";
+ soundResourceId = RID_BOAR_VOICE_005;
+ break;
}
}