summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/transfor.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/transfor.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/transfor.cc')
-rw-r--r--crawl-ref/source/transfor.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/transfor.cc b/crawl-ref/source/transfor.cc
index 77a578a875..3818915442 100644
--- a/crawl-ref/source/transfor.cc
+++ b/crawl-ref/source/transfor.cc
@@ -521,7 +521,7 @@ bool transform(int pow, transformation_type which_trans, bool quiet)
{
mpr("The net rips apart!");
you.attribute[ATTR_HELD] = 0;
- int net = get_trapping_net(you.x_pos, you.y_pos);
+ int net = get_trapping_net(you.pos());
if (net != NON_ITEM)
destroy_item(net);
}
@@ -602,7 +602,7 @@ bool transform(int pow, transformation_type which_trans, bool quiet)
{
mpr("You drift through the net!");
you.attribute[ATTR_HELD] = 0;
- int net = get_trapping_net(you.x_pos, you.y_pos);
+ int net = get_trapping_net(you.pos());
if (net != NON_ITEM)
remove_item_stationary(mitm[net]);
}
@@ -750,7 +750,7 @@ void untransform(void)
}
// Re-check terrain now that be may no longer be flying.
- move_player_to_grid(you.x_pos, you.y_pos, false, true, true);
+ move_player_to_grid(you.pos(), false, true, true);
if (transform_can_butcher_barehanded(old_form))
stop_butcher_delay();
@@ -873,7 +873,7 @@ void drop_everything(void)
{
if (is_valid_item( you.inv[i] ))
{
- copy_item_to_grid( you.inv[i], you.x_pos, you.y_pos );
+ copy_item_to_grid( you.inv[i], you.pos() );
you.inv[i].quantity = 0;
}
}