diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-07 21:46:49 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-07 21:46:49 +0000 |
commit | c32faa163b1e864710843e383213fae443e8818d (patch) | |
tree | f2118911ebc5e78325ac8a3615f7bdad037b003e /crawl-ref/source/initfile.cc | |
parent | f065a2868dd89127e562288acd66be27b4883148 (diff) | |
download | crawl-ref-c32faa163b1e864710843e383213fae443e8818d.tar.gz crawl-ref-c32faa163b1e864710843e383213fae443e8818d.zip |
Removed unnecessary < 0 check on glyphs.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1555 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r-- | crawl-ref/source/initfile.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index 05c437455f..2630d96752 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -824,10 +824,7 @@ static unsigned read_symbol(std::string s) } char *tail; - int feat = strtol(s.c_str(), &tail, base); - if (feat < 0) - feat = 0; - return static_cast<unsigned>(feat); + return (strtoul(s.c_str(), &tail, base)); } void game_options::add_feature_override(const std::string &text) |