Add T6 vehicle team value for neutral

This commit is contained in:
Jan 2021-04-27 15:22:56 +02:00
parent 4e8d1806cc
commit b1fce0f4fb
2 changed files with 10 additions and 0 deletions

View File

@ -73,6 +73,12 @@ namespace T6
return true;
}
if (value == "neutral")
{
*reinterpret_cast<int*>(reinterpret_cast<uintptr_t>(m_structure) + field.iOffset) = TEAM_FOUR;
return true;
}
*reinterpret_cast<int*>(reinterpret_cast<uintptr_t>(m_structure) + field.iOffset) = TEAM_BAD;
std::cout << "Failed to parse value \"" << value << "\" as team" << std::endl;
return false;

View File

@ -58,6 +58,10 @@ namespace T6
m_info_string.SetValueForKey(std::string(field.szName), "allies");
break;
case TEAM_FOUR:
m_info_string.SetValueForKey(std::string(field.szName), "neutral");
break;
default:
assert(false);
m_info_string.SetValueForKey(std::string(field.szName), "");