AGOS: Fixed badload(); some whitespace cleanup

svn-id: r42624
This commit is contained in:
Max Horn 2009-07-20 05:02:17 +00:00
parent 00af395ab6
commit 9e3d42c0cf
2 changed files with 7 additions and 7 deletions

View file

@ -229,7 +229,7 @@ bool AGOSEngine::confirmOverWrite(WindowBlock *window) {
break;
case Common::DE_DEU:
message1 = "\rDatei existiert bereits.\r\r";
message2 = " berschreiben ?\r\r";
message2 = " Ueberschreiben ?\r\r";
message3 = " Ja Nein";
break;
default:
@ -1551,7 +1551,6 @@ bool AGOSEngine_Elvira2::saveGame(uint slot, const char *caption) {
#ifdef ENABLE_PN
// Personal Nightmare specific
bool AGOSEngine_PN::badload(int8 errorNum) {
printf("badload(%d)\n", errorNum);
if (errorNum == -2)
return 0;
// Load error recovery routine
@ -1563,7 +1562,7 @@ printf("badload(%d)\n", errorNum);
// Restart from process 1
_tagOfActiveDoline = 1;
_dolineReturnVal = 2;
_dolineReturnVal = 3;
return 1;
}

View file

@ -916,6 +916,7 @@ int AGOSEngine_PN::doline(int needsave) {
_dolineReturnVal = 0;
if (x > 0) {
if (x != 3)
dumpstack();
// Restore the active jmpbuf to its previous value,
// then return _dolineReturnVal-1 (will be 2-1=1 or 1-1=0).