Fix import of legacy Wandering Will Fight special nodes

After checking legacy documentation, I determined that
the meaning of ex1a is reversed in the latest code.
This commit is contained in:
2020-01-19 16:26:15 -05:00
parent cf3f20ffcc
commit 488e5a2570

View File

@@ -315,9 +315,14 @@ void cSpecial::import_legacy(legacy::special_node_type& old){
ex2a = (old.type == 4); ex2a = (old.type == 4);
break; break;
case 11: // Can't enter case 11: // Can't enter
case 26: // Wandering will fight
type = eSpecType::CANT_ENTER; type = eSpecType::CANT_ENTER;
ex1a = 1; ex1a = 1;
ex2a = 0;
break;
case 26: // Wandering will fight
type = eSpecType::CANT_ENTER;
ex1a = 1 - ex1a;
ex2a = 0;
break; break;
case 171: case 226: // Change terrain (town/outdoor) case 171: case 226: // Change terrain (town/outdoor)
type = eSpecType::CHANGE_TER; type = eSpecType::CHANGE_TER;