mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 00:25:44 +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;
|
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;
|
*reinterpret_cast<int*>(reinterpret_cast<uintptr_t>(m_structure) + field.iOffset) = TEAM_BAD;
|
||||||
std::cout << "Failed to parse value \"" << value << "\" as team" << std::endl;
|
std::cout << "Failed to parse value \"" << value << "\" as team" << std::endl;
|
||||||
return false;
|
return false;
|
||||||
|
@ -58,6 +58,10 @@ namespace T6
|
|||||||
m_info_string.SetValueForKey(std::string(field.szName), "allies");
|
m_info_string.SetValueForKey(std::string(field.szName), "allies");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case TEAM_FOUR:
|
||||||
|
m_info_string.SetValueForKey(std::string(field.szName), "neutral");
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
assert(false);
|
assert(false);
|
||||||
m_info_string.SetValueForKey(std::string(field.szName), "");
|
m_info_string.SetValueForKey(std::string(field.szName), "");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user