summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/species.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-11-22 03:30:06 +0100
committerAdam Borowski <kilobyte@angband.pl>2012-11-22 04:34:29 +0100
commit44b6e7a985c2c5f852a6c9638bdca64259025d8e (patch)
tree83ba28d6144eb81ee574fc0a72892997e6adbaeb /crawl-ref/source/species.cc
parent064836cfdb99776b23764e3e460af59756e6beef (diff)
downloadcrawl-ref-44b6e7a985c2c5f852a6c9638bdca64259025d8e.tar.gz
crawl-ref-44b6e7a985c2c5f852a6c9638bdca64259025d8e.zip
Fix prompts asking for 'I' in Turkish locales.
They have I<->ı and İ<->i. Fortunately, people are quite unlikely to type capital letters in response to prompts, perhaps save for the stat gain one.
Diffstat (limited to 'crawl-ref/source/species.cc')
-rw-r--r--crawl-ref/source/species.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/species.cc b/crawl-ref/source/species.cc
index ba148b9680..d53f0821b8 100644
--- a/crawl-ref/source/species.cc
+++ b/crawl-ref/source/species.cc
@@ -2,6 +2,7 @@
#include "species.h"
+#include "libutil.h"
#include "random.h"
// March 2008: change order of species and jobs on character selection
@@ -76,8 +77,9 @@ species_type get_species_by_abbrev(const char *abbrev)
COMPILE_CHECK(ARRAYSZ(Species_Abbrev_List) == NUM_SPECIES);
for (i = 0; i < NUM_SPECIES; i++)
{
- if (tolower(abbrev[0]) == tolower(Species_Abbrev_List[i][0])
- && tolower(abbrev[1]) == tolower(Species_Abbrev_List[i][1]))
+ // This assumes untranslated abbreviations.
+ if (toalower(abbrev[0]) == toalower(Species_Abbrev_List[i][0])
+ && toalower(abbrev[1]) == toalower(Species_Abbrev_List[i][1]))
{
break;
}