Game modes cleanup

- Fix some cases where modes were still referenced by number
- Replace most cases of mode range-comparison with is_out(), is_town(), and/or is_combat()

There could be some minor errors in the replacements.
This commit is contained in:
2020-02-04 00:02:08 -05:00
parent 02d98db391
commit 72bd8265fa
12 changed files with 76 additions and 92 deletions

View File

@@ -231,7 +231,7 @@ void give_thing(short pc_num, short item_num) {
short dist_from_party(location where) {
short store = 1000;
if((overall_mode >= MODE_COMBAT) && (overall_mode < MODE_TALKING)) {
if(is_combat()) {
for(short i = 0; i < 6; i++)
if(univ.party[i].main_status == eMainStatus::ALIVE)
store = min(store,dist(univ.party[i].combat_pos,where));