summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-22 20:21:15 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-22 20:21:15 +0000
commit9a160b380b94ce9b89c93214fe7b9de3f36ed01f (patch)
tree53d1992a132d6e3178b427bbaca2510120233173 /crawl-ref/source/stash.cc
parent23e8c7a07f9ea71e683fa748940cc7447e5a8aa1 (diff)
downloadcrawl-ref-9a160b380b94ce9b89c93214fe7b9de3f36ed01f.tar.gz
crawl-ref-9a160b380b94ce9b89c93214fe7b9de3f36ed01f.zip
Massive change from using x and y to using coord_defs(). Not quite tested,
most likely broken in some places and might break tiles. Will fix in the near future. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6636 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stash.cc')
-rw-r--r--crawl-ref/source/stash.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/stash.cc b/crawl-ref/source/stash.cc
index 0ec9592511..9dc98a5779 100644
--- a/crawl-ref/source/stash.cc
+++ b/crawl-ref/source/stash.cc
@@ -270,7 +270,7 @@ void Stash::update()
feat = DNGN_FLOOR;
if (grid_is_trap(feat))
- trap = trap_type_at_xy(x, y);
+ trap = trap_type_at_xy(coord_def(x, y));
int objl = igrd[x][y];
// If this is your position, you know what's on this square
@@ -769,7 +769,7 @@ ShopInfo::ShopInfo(int xp, int yp) : x(xp), y(yp), name(), shoptype(-1),
{
// Most of our initialization will be done externally; this class is really
// a mildly glorified struct.
- const shop_struct *sh = get_shop(x, y);
+ const shop_struct *sh = get_shop(coord_def(x, y));
if (sh)
shoptype = sh->type;
}
@@ -1094,7 +1094,7 @@ ShopInfo &LevelStashes::get_shop(int x, int y)
return m_shops[i];
}
ShopInfo si(x, y);
- si.set_name(shop_name(x, y));
+ si.set_name(shop_name(coord_def(x, y)));
m_shops.push_back(si);
return get_shop(x, y);
}