diff options
author | Torbjörn Andersson | 2005-02-28 13:22:31 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-02-28 13:22:31 +0000 |
commit | 9424c5aef252869835a296c1c497807fe6f3c0c6 (patch) | |
tree | d24135bfb39069d5046ab136bb9c4e690cb855ee /sword2/save_rest.cpp | |
parent | c840db8ab2404c050ac8b71719058eb36168e33b (diff) | |
download | scummvm-rg350-9424c5aef252869835a296c1c497807fe6f3c0c6.tar.gz scummvm-rg350-9424c5aef252869835a296c1c497807fe6f3c0c6.tar.bz2 scummvm-rg350-9424c5aef252869835a296c1c497807fe6f3c0c6.zip |
Changed a few more hard-coded text-ids to constants.
svn-id: r16957
Diffstat (limited to 'sword2/save_rest.cpp')
-rw-r--r-- | sword2/save_rest.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sword2/save_rest.cpp b/sword2/save_rest.cpp index 8fbe6e98b5..a9eef067f0 100644 --- a/sword2/save_rest.cpp +++ b/sword2/save_rest.cpp @@ -108,10 +108,10 @@ uint32 Sword2Engine::saveGame(uint16 slotNo, byte *desc) { switch (errorCode) { case SR_ERR_FILEOPEN: - textId = 213516674; + textId = TEXT_SAVE_CANT_OPEN; break; - default: // SR_ERR_WRITEFAIL - textId = 213516676; + default: + textId = TEXT_SAVE_FAILED; break; } @@ -226,13 +226,13 @@ uint32 Sword2Engine::restoreGame(uint16 slotNo) { switch (errorCode) { case SR_ERR_FILEOPEN: - textId = 213516670; + textId = TEXT_RESTORE_CANT_OPEN; break; case SR_ERR_INCOMPATIBLE: - textId = 213516671; + textId = TEXT_RESTORE_INCOMPATIBLE; break; - default: // SR_ERR_READFAIL - textId = 213516673; + default: + textId = TEXT_RESTORE_FAILED; break; } |