summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tile1.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/tile1.cc')
-rw-r--r--crawl-ref/source/tile1.cc29
1 files changed, 8 insertions, 21 deletions
diff --git a/crawl-ref/source/tile1.cc b/crawl-ref/source/tile1.cc
index c5ecc5384b..5dcea8891f 100644
--- a/crawl-ref/source/tile1.cc
+++ b/crawl-ref/source/tile1.cc
@@ -1892,17 +1892,14 @@ int tileidx_item(const item_def &item)
}
}
-/*
- Determine Octant of missile direction
- ---> X+
- |
- | 701
- Y 6O2
- + 543
-
- the octant boundary slope tan(pi/8)=sqrt(2)-1 = 0.414 is approximated by 2/5
-
-*/
+// Determine Octant of missile direction
+// .---> X+
+// |
+// | 701
+// Y 6O2
+// + 543
+//
+// The octant boundary slope tan(pi/8)=sqrt(2)-1 = 0.414 is approximated by 2/5.
static int _tile_bolt_dir(int dx, int dy)
{
int ax = abs(dx);
@@ -1925,16 +1922,6 @@ int tileidx_item_throw(const item_def &item, int dx, int dy)
int ch = -1;
int dir = _tile_bolt_dir(dx, dy);
- switch (get_ammo_brand(item))
- {
- case SPMSL_FLAME:
- return (tileidx_zap(RED));
- case SPMSL_ICE:
- return (tileidx_zap(WHITE));
- default:
- break;
- }
-
// Thrown items with multiple directions
switch (item.sub_type)
{