|
From: <gi...@cr...> - 2013-09-30 05:15:11
|
via 950da1328a51923285062392227e43fef8ade908 (commit)
from 1404ebc605d8ca73898552a64c16e22fdde06945 (commit)
-----------------------------------------------------------------------
commit 950da1328a51923285062392227e43fef8ade908
Author: Neil Moore <ne...@s-...>
Date: Mon Sep 30 01:11:20 2013 -0400
Remove a few unused variables.
-----------------------------------------------------------------------
Summary of changes:
crawl-ref/source/target.cc | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/crawl-ref/source/target.cc b/crawl-ref/source/target.cc
index 2088303..3b9164a 100644
--- a/crawl-ref/source/target.cc
+++ b/crawl-ref/source/target.cc
@@ -894,12 +894,10 @@ targetter_jump::targetter_jump(const actor* act, int range)
bool targetter_jump::valid_aim(coord_def a)
{
- actor *act;
bool is_valid = true;
coord_def c, jump_pos;
ray_def ray;
- act = actor_at(a);
if ((origin - a).abs() > range2)
{
is_valid = notify_fail("Out of range.");
@@ -1023,7 +1021,6 @@ aff_type targetter_jump::is_affected(coord_def loc)
// indicate that with jump_is_blocked.
bool targetter_jump::set_aim(coord_def a)
{
- actor *act;
ray_def ray;
set<coord_def>::const_iterator site;
@@ -1033,7 +1030,7 @@ bool targetter_jump::set_aim(coord_def a)
return false;
jump_is_blocked = false;
- act = actor_at(aim);
+
// Find our set of landing sites, choose one at random, and see if it's
// actually blocked.
set_additional_sites(aim);
--
Dungeon Crawl Stone Soup
|