diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/glk/alan3/output.cpp | 4 | ||||
-rw-r--r-- | engines/glk/alan3/save.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/engines/glk/alan3/output.cpp b/engines/glk/alan3/output.cpp index 0d946114dc..1ac2cd69a7 100644 --- a/engines/glk/alan3/output.cpp +++ b/engines/glk/alan3/output.cpp @@ -424,10 +424,12 @@ void output(const char *original) { if (lastCharOf(str) != ' ') needSpace = TRUE; } + if (needSpace) capitalize = strchr("!?.", str[strlen(str) - 1]) != 0; + anyOutput = TRUE; - free(copy); + delete[] copy; } diff --git a/engines/glk/alan3/save.cpp b/engines/glk/alan3/save.cpp index da1d5b6ba4..839ce2bdee 100644 --- a/engines/glk/alan3/save.cpp +++ b/engines/glk/alan3/save.cpp @@ -66,7 +66,7 @@ void syncGame(Common::Serializer &s) { current.synchronize(s); // Attributes area - for (Aint i = 0; i < header->attributesAreaSize; ++i) + for (Aint i = 0; i < header->attributesAreaSize / 3; ++i) attributes[i].synchronize(s); // Admin data |