Adjust If Party Size node to match documentation

This commit is contained in:
2015-06-27 20:49:02 -04:00
parent 21435082c9
commit d11e34b41b
2 changed files with 3 additions and 3 deletions

View File

@@ -310,7 +310,7 @@ Unused
Unused
Unused
Unused
Unused
1 - include dead characters, otherwise no
If party size sufficient, call this special ...
Unused
0 - Exact size, 1 - Minimum size

View File

@@ -3457,11 +3457,11 @@ void ifthen_spec(eSpecCtx which_mode,cSpecial cur_node,short cur_spec_type,
break;
case eSpecType::IF_PARTY_SIZE:
if(spec.ex2a < 1) {
if(party_size(spec.ex2b) == spec.ex1a)
if(party_size(spec.ex1a <= 0) == spec.ex2b)
*next_spec = spec.ex1b;
}
else {
if(party_size(spec.ex2b) >= spec.ex1a)
if(party_size(spec.ex1a <= 0) >= spec.ex2b)
*next_spec = spec.ex1b;
}
break;