Remove pointless s_pow and s_sqrt functions and use hypot instead of sqrt for distance calculations

This commit is contained in:
2015-06-21 18:04:31 -04:00
parent b85d177164
commit b7faf52f5e
8 changed files with 16 additions and 26 deletions

View File

@@ -307,7 +307,7 @@ void set_item_flag(cItem* item) {
if((item->is_special > 0) && (item->is_special < 65)) {
item->is_special--;
univ.party.item_taken[univ.town.num][item->is_special / 8] =
univ.party.item_taken[univ.town.num][item->is_special / 8] | s_pow(2,item->is_special % 8);
univ.party.item_taken[univ.town.num][item->is_special / 8] | (1 << item->is_special % 8);
item->is_special = 0;
}
}