aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2005-08-11 14:03:10 +0000
committerEugene Sandulenko2005-08-11 14:03:10 +0000
commit45ca2e66ea53a3b7bcb27b487f817222e237cf65 (patch)
tree27fd07d9e9036d66088df4514d091d1c47bff561
parent2230d4b0376cc3ee7015a02ad7b60680388be50f (diff)
downloadscummvm-rg350-45ca2e66ea53a3b7bcb27b487f817222e237cf65.tar.gz
scummvm-rg350-45ca2e66ea53a3b7bcb27b487f817222e237cf65.tar.bz2
scummvm-rg350-45ca2e66ea53a3b7bcb27b487f817222e237cf65.zip
Fix bug #1256704 "ITE: Wrong text display in German version"
svn-id: r18657
-rw-r--r--saga/itedata.cpp8
-rw-r--r--saga/itedata.h2
-rw-r--r--saga/saveload.cpp5
3 files changed, 10 insertions, 5 deletions
diff --git a/saga/itedata.cpp b/saga/itedata.cpp
index 8a0d61880d..f75d235628 100644
--- a/saga/itedata.cpp
+++ b/saga/itedata.cpp
@@ -334,7 +334,7 @@ FxTable ITE_SfxTable[ITE_SFXCOUNT] = {
{ FX_CROWD_17, 64 }
};
-const char *ITEinterfaceTextStrings[][44] = {
+const char *ITEinterfaceTextStrings[][45] = {
{
"Walk to", "Look At", "Pick Up", "Talk to", "Open",
"Close", "Use", "Give", "Options", "Test",
@@ -344,7 +344,8 @@ const char *ITEinterfaceTextStrings[][44] = {
"Quit", "OK", "Mid", "Click", "10%",
"20%", "30%", "40%", "50%", "60%",
"70%", "80%", "90%", "Max", "Quit the Game?",
- "Load Successful!", "Enter Save Game Name", "Give %s to %s", "Use %s with %s"
+ "Load Successful!", "Enter Save Game Name", "Give %s to %s", "Use %s with %s",
+ "[New Save Game]"
},
// German
@@ -357,7 +358,8 @@ const char *ITEinterfaceTextStrings[][44] = {
"Beenden", NULL, "M", "Klick", NULL,
NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, "Spiel beenden?",
- "Spielstand geladen!", "Bitte Namen eingeben", "Gib %s zu %s", "Benutze %s mit %s"
+ "Spielstand geladen!", "Bitte Namen eingeben", "Gib %s zu %s", "Benutze %s mit %s",
+ "[Neuer Spielstand]"
}
};
diff --git a/saga/itedata.h b/saga/itedata.h
index 0811891eab..9cadb41a39 100644
--- a/saga/itedata.h
+++ b/saga/itedata.h
@@ -87,7 +87,7 @@ struct FxTable {
extern ObjectTableData ITE_ObjectTable[ITE_OBJECTCOUNT];
extern FxTable ITE_SfxTable[ITE_SFXCOUNT];
-extern const char *ITEinterfaceTextStrings[][44];
+extern const char *ITEinterfaceTextStrings[][45];
} // End of namespace Saga
diff --git a/saga/saveload.cpp b/saga/saveload.cpp
index 669a0ae377..62e4172e24 100644
--- a/saga/saveload.cpp
+++ b/saga/saveload.cpp
@@ -43,7 +43,7 @@
namespace Saga {
static SaveFileData emptySlot = {
- "[New Save Game]", 0
+ "", 0
};
//TODO:
@@ -62,6 +62,9 @@ SaveFileData *SagaEngine::getSaveFile(uint idx) {
if (isSaveListFull()) {
return &_saveFiles[_saveFilesCount - idx - 1];
} else {
+ if (!emptySlot.name[0])
+ strcpy(emptySlot.name, getTextString(44));
+
return (idx == 0) ? &emptySlot : &_saveFiles[_saveFilesCount - idx];
}
}