diff --git a/src/ObjLoading/Game/T6/AssetLoaders/AssetLoaderVehicle.cpp b/src/ObjLoading/Game/T6/AssetLoaders/AssetLoaderVehicle.cpp index 13e99db5..25778260 100644 --- a/src/ObjLoading/Game/T6/AssetLoaders/AssetLoaderVehicle.cpp +++ b/src/ObjLoading/Game/T6/AssetLoaders/AssetLoaderVehicle.cpp @@ -73,6 +73,12 @@ namespace T6 return true; } + if (value == "neutral") + { + *reinterpret_cast(reinterpret_cast(m_structure) + field.iOffset) = TEAM_FOUR; + return true; + } + *reinterpret_cast(reinterpret_cast(m_structure) + field.iOffset) = TEAM_BAD; std::cout << "Failed to parse value \"" << value << "\" as team" << std::endl; return false; diff --git a/src/ObjWriting/Game/T6/AssetDumpers/AssetDumperVehicle.cpp b/src/ObjWriting/Game/T6/AssetDumpers/AssetDumperVehicle.cpp index 36d1c0c6..5905b64c 100644 --- a/src/ObjWriting/Game/T6/AssetDumpers/AssetDumperVehicle.cpp +++ b/src/ObjWriting/Game/T6/AssetDumpers/AssetDumperVehicle.cpp @@ -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), "");