mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
Add T6 vehicle team value for neutral
This commit is contained in:
parent
4e8d1806cc
commit
b1fce0f4fb
@ -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;
|
||||
|
@ -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), "");
|
||||
|
Loading…
x
Reference in New Issue
Block a user