special: try to make IF_ON_{BOAT|HORSE} work...

This commit is contained in:
Laurent Alonso(fr)
2020-05-24 08:36:40 +02:00
committed by Celtic Minstrel
parent 8144d44ca0
commit 38260ec8c2

View File

@@ -3702,11 +3702,11 @@ void ifthen_spec(const runtime_state& ctx) {
ctx.next_spec = spec.ex1c;
break;
case eSpecType::IF_IN_BOAT:
if((spec.ex1b == -1 && univ.party.in_boat >= 0) || spec.ex1b == univ.party.in_boat)
if(univ.party.in_boat >= 0 && (spec.ex1b < 0 || spec.ex1b == univ.party.in_boat))
ctx.next_spec = spec.ex1c;
break;
case eSpecType::IF_ON_HORSE:
if((spec.ex1b == -1 && univ.party.in_horse >= 0) || spec.ex1b == univ.party.in_horse)
if(univ.party.in_horse >= 0 && (spec.ex1b < 0 || spec.ex1b == univ.party.in_horse))
ctx.next_spec = spec.ex1c;
break;
default: