Flight items don't take charge if flight not possible

This commit is contained in:
2014-12-12 13:34:47 -05:00
parent 90bcdb9062
commit 1d7342edc2

View File

@@ -1002,13 +1002,16 @@ void use_item(short pc,short item)
case ITEM_FLYING:
if (PSD[SDF_PARTY_FLIGHT] > 0) {
add_string_to_buf(" Not while already flying. ");
take_charge = false;
break;
}
if (univ.party.in_boat >= 0)
if (univ.party.in_boat >= 0) {
add_string_to_buf(" Leave boat first. ");
else if (univ.party.in_horse >= 0)////
take_charge = false;
} else if (univ.party.in_horse >= 0) {
add_string_to_buf(" Leave horse first. ");
else {
take_charge = false;
} else {
ASB(" You rise into the air!");
PSD[SDF_PARTY_FLIGHT] += str;
}