diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-12-04 23:09:13 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-12-05 00:18:58 +0100 |
commit | 26615fd41b329d37a966b172d9fd61431b08c994 (patch) | |
tree | 0b14b1a93e1faf4dc4a360276726ca44c18ec4e8 /crawl-ref/source/dbg-util.cc | |
parent | 1dc9e5a843c5b1a9f10ed464e453e935dac6fc0e (diff) | |
download | crawl-ref-26615fd41b329d37a966b172d9fd61431b08c994.tar.gz crawl-ref-26615fd41b329d37a966b172d9fd61431b08c994.zip |
Change seen_context from strings to enums, slightly untangle it.
It's still a terrible mess. I didn't manage to understand it well enough
so all[1] functionality is preserved, at the cost of clarity. I unified
some values that are functionally identical, but not yet all.
[1]. The context is reported only as a number in crash dumps, a minor
regression but 1. saves speed, 2. it'd be a matter of copying the enum
names if someone actually needs this.
Diffstat (limited to 'crawl-ref/source/dbg-util.cc')
-rw-r--r-- | crawl-ref/source/dbg-util.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/dbg-util.cc b/crawl-ref/source/dbg-util.cc index e8efddbff9..0742224f48 100644 --- a/crawl-ref/source/dbg-util.cc +++ b/crawl-ref/source/dbg-util.cc @@ -289,8 +289,8 @@ void debug_dump_mon(const monster* mon, bool recurse) mon->colour, mon->foe_memory, mon->shield_blocks, mon->experience); - fprintf(stderr, "god: %s, seen_context: %s\n", - god_name(mon->god).c_str(), mon->seen_context.c_str()); + fprintf(stderr, "god: %s, seen_context: %d\n", + god_name(mon->god).c_str(), mon->seen_context); fprintf(stderr, ">>>>>>>>>\n\n"); |