diff options
author | Paul Gilbert | 2014-03-16 01:29:02 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-03-16 01:29:02 -0400 |
commit | 17870490873bd9ba040b58cb5fbfc1c8480d5461 (patch) | |
tree | f7c22bc4f381952ef9e27016f2556094194efdd2 /engines/mads/resources.cpp | |
parent | 120374b7d0eb1af089111f3dfa710122d2ab7424 (diff) | |
download | scummvm-rg350-17870490873bd9ba040b58cb5fbfc1c8480d5461.tar.gz scummvm-rg350-17870490873bd9ba040b58cb5fbfc1c8480d5461.tar.bz2 scummvm-rg350-17870490873bd9ba040b58cb5fbfc1c8480d5461.zip |
MADS: Add loading of game inventory list and quotes
Diffstat (limited to 'engines/mads/resources.cpp')
-rw-r--r-- | engines/mads/resources.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/mads/resources.cpp b/engines/mads/resources.cpp index 140a34749a..2742b5b435 100644 --- a/engines/mads/resources.cpp +++ b/engines/mads/resources.cpp @@ -313,7 +313,9 @@ Common::String Resources::formatName(int prefix, char asciiCh, int id, EXTTYPE e (prefix < 100) ? "*SC" : "*RM", prefix); } - result += Common::String::format("%c%d", asciiCh, id); + result += Common::String::format("%c", asciiCh); + if (id >= 0) + result += Common::String::format("%d", id); if (!suffix.empty()) result += suffix; |