SUPERNOVA: Move object name and description strings to engine data file

This commit is contained in:
Thierry Crozat 2017-10-01 21:36:15 +01:00
parent be08dd3c57
commit 7722fe99cd
7 changed files with 865 additions and 652 deletions

View file

@ -70,8 +70,6 @@ const AudioInfo audioInfo[kAudioNumSamples] = {
{54, 31040, -1}
};
const char *const Object::defaultDescription = "Es ist nichts Besonderes daran.";
const char *const Object::takeMessage = "Das mußt du erst nehmen.";
const Object Object::nullObject = Object();
ObjectType operator|(ObjectType a, ObjectType b) {
@ -906,7 +904,8 @@ bool SupernovaEngine::loadGame(int slot) {
}
byte saveVersion = savefile->readByte();
if (saveVersion > SAVEGAME_VERSION) {
// Save version 1 was used during development and is no longer supported
if (saveVersion > SAVEGAME_VERSION || saveVersion == 1) {
warning("Save game version %i not supported", saveVersion);
delete savefile;
return Common::kUnknownError;