diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-23 17:11:56 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-23 17:11:56 +0000 |
commit | 7e8a32831f88e720c9ba724037b76d09fc5c1cd0 (patch) | |
tree | c6cf3786e3650ee690136f8330fd8c50033c5eb3 /crawl-ref/source/libutil.cc | |
parent | 74306af7d80b6dc3360b145270bd7d5ca20eb19f (diff) | |
download | crawl-ref-7e8a32831f88e720c9ba724037b76d09fc5c1cd0.tar.gz crawl-ref-7e8a32831f88e720c9ba724037b76d09fc5c1cd0.zip |
Allow monster symbols to be customised using the mon_glyph option.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1916 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libutil.cc')
-rw-r--r-- | crawl-ref/source/libutil.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/libutil.cc b/crawl-ref/source/libutil.cc index e3c68f87bb..e1cca6a43e 100644 --- a/crawl-ref/source/libutil.cc +++ b/crawl-ref/source/libutil.cc @@ -414,14 +414,14 @@ static void add_segment(std::vector<std::string> &segs, } std::vector<std::string> split_string( - const char *sep, - std::string s, - bool trim_segments, - bool accept_empty_segments, - int nsplits) + const std::string &sep, + std::string s, + bool trim_segments, + bool accept_empty_segments, + int nsplits) { std::vector<std::string> segments; - int separator_length = strlen(sep); + int separator_length = sep.length(); std::string::size_type pos; while (nsplits && (pos = s.find(sep)) != std::string::npos) |