diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-02-08 15:09:25 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-02-08 16:18:22 -0800 |
commit | 730e5dde39333cb2f63c72a7d7152bee5c4dbb05 (patch) | |
tree | 510ef3e0ad46ecf1f2bee1fa42f26e6377b51686 /src/map/skill.cpp | |
parent | 7a15a3efe85837d52d950cc9f895eadcc9eb6be1 (diff) | |
download | tmwa-730e5dde39333cb2f63c72a7d7152bee5c4dbb05.tar.gz tmwa-730e5dde39333cb2f63c72a7d7152bee5c4dbb05.tar.bz2 tmwa-730e5dde39333cb2f63c72a7d7152bee5c4dbb05.tar.xz tmwa-730e5dde39333cb2f63c72a7d7152bee5c4dbb05.zip |
Implement AString
Diffstat (limited to 'src/map/skill.cpp')
-rw-r--r-- | src/map/skill.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/skill.cpp b/src/map/skill.cpp index 2253d9d..0222202 100644 --- a/src/map/skill.cpp +++ b/src/map/skill.cpp @@ -6,7 +6,7 @@ #include <ctime> #include "../strings/mstring.hpp" -#include "../strings/fstring.hpp" +#include "../strings/rstring.hpp" #include "../strings/xstring.hpp" #include "../io/cxxstdio.hpp" @@ -1169,7 +1169,7 @@ SP scan_stat(XString statname) if (statname == "none") return SP::ZERO; - FPRINTF(stderr, "Unknown stat `%s'\n", FString(statname)); + FPRINTF(stderr, "Unknown stat `%s'\n", AString(statname)); return SP::ZERO; } @@ -1183,7 +1183,7 @@ bool skill_readdb(ZString filename) } bool rv = true; - FString line_; + AString line_; while (in.getline(line_)) { // is_comment only works for whole-line comments @@ -1267,7 +1267,7 @@ bool skill_readdb(ZString filename) c = ' '; skill_db[i] = skdb; - skill_lookup_by_id(i).desc = FString(tmp); + skill_lookup_by_id(i).desc = RString(tmp); } PRINTF("read %s done\n", filename); |