summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/place-info.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-06-20 00:28:11 +0200
committerAdam Borowski <kilobyte@angband.pl>2010-06-20 20:27:49 +0200
commita201159a83c15d2e9d3d027423162acab391cba0 (patch)
tree0634bce04097fcd45e82566d1e507c05340c278f /crawl-ref/source/place-info.h
parent239738eefd7df21b8298966c3f2194510dfe899a (diff)
downloadcrawl-ref-a201159a83c15d2e9d3d027423162acab391cba0.tar.gz
crawl-ref-a201159a83c15d2e9d3d027423162acab391cba0.zip
s/marshallLong/marshallInt/, since this confusion tends to cause bugs.
Actually, it should be named marshallInt32_t as that's what it does, but that's hard to read, no architecture with smaller ints can conceivably run Crawl and the only architecture with bigger ints is long dead. And in even in such a case, everything will be fine except for name confusion...
Diffstat (limited to 'crawl-ref/source/place-info.h')
-rw-r--r--crawl-ref/source/place-info.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/crawl-ref/source/place-info.h b/crawl-ref/source/place-info.h
index 57eee7f0c3..559d364471 100644
--- a/crawl-ref/source/place-info.h
+++ b/crawl-ref/source/place-info.h
@@ -7,26 +7,26 @@ public:
int level_type; // enum level_area_type
int branch; // enum branch_type if LEVEL_DUNGEON; otherwise -1
- unsigned long num_visits;
- unsigned long levels_seen;
+ unsigned int num_visits;
+ unsigned int levels_seen;
- unsigned long mon_kill_exp;
- unsigned long mon_kill_exp_avail;
- unsigned long mon_kill_num[KC_NCATEGORIES];
+ unsigned int mon_kill_exp;
+ unsigned int mon_kill_exp_avail;
+ unsigned int mon_kill_num[KC_NCATEGORIES];
- long turns_total;
- long turns_explore;
- long turns_travel;
- long turns_interlevel;
- long turns_resting;
- long turns_other;
+ int turns_total;
+ int turns_explore;
+ int turns_travel;
+ int turns_interlevel;
+ int turns_resting;
+ int turns_other;
- long elapsed_total;
- long elapsed_explore;
- long elapsed_travel;
- long elapsed_interlevel;
- long elapsed_resting;
- long elapsed_other;
+ int elapsed_total;
+ int elapsed_explore;
+ int elapsed_travel;
+ int elapsed_interlevel;
+ int elapsed_resting;
+ int elapsed_other;
public:
PlaceInfo();