Fix the line-of-sight stuff that was broken thanks to 0 being implicitly convertible to std::function

This commit is contained in:
2014-12-02 13:08:58 -05:00
parent 03c64ebd7b
commit a95f1c5b93
11 changed files with 44 additions and 44 deletions

View File

@@ -1689,7 +1689,7 @@ void cast_town_spell(location where) ////
return;
}
adjust = can_see(univ.town.p_loc,where,0);
adjust = can_see_light(univ.town.p_loc,where,sight_obscurity);
if (town_spell < 1000)
univ.party[who_cast].cur_sp -= spell_cost[town_spell / 100][town_spell % 100];
else town_spell -= 1000;