From 75d77413f6f9851c6592fc8e58c11586ede65703 Mon Sep 17 00:00:00 2001 From: William JCM Date: Sun, 13 Mar 2022 15:26:00 +0100 Subject: [PATCH] Mass: add a new value to BulletLauncherSockets.hpp. --- src/Maps/BulletLauncherSockets.hpp | 12 ++++++------ src/Mass/BulletLauncherAttachment.h | 2 +- src/Mass/Mass_Armour.cpp | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Maps/BulletLauncherSockets.hpp b/src/Maps/BulletLauncherSockets.hpp index 1aa99b9..3c50a60 100644 --- a/src/Maps/BulletLauncherSockets.hpp +++ b/src/Maps/BulletLauncherSockets.hpp @@ -15,10 +15,10 @@ // along with this program. If not, see . #ifdef c -c(Auto, "None"_s) -c(Shoulders, "Shoulder"_s) -c(Body, "Body"_s) -c(Backpack, "Backpack"_s) -c(Hip, "Hip"_s) -c(LowerLegs, "LowerLeg"_s) +c(Auto, "None"_s, "Auto"_s) +c(Shoulders, "Shoulder"_s, "Shoulders"_s) +c(Body, "Body"_s, "Body"_s) +c(Backpack, "Backpack"_s, "Backpack"_s) +c(Hip, "Hip"_s, "Hips"_s) +c(LowerLegs, "LowerLeg"_s, "Lower legs"_s) #endif diff --git a/src/Mass/BulletLauncherAttachment.h b/src/Mass/BulletLauncherAttachment.h index 1882070..028c7a4 100644 --- a/src/Mass/BulletLauncherAttachment.h +++ b/src/Mass/BulletLauncherAttachment.h @@ -31,7 +31,7 @@ enum class BulletLauncherAttachmentStyle { }; enum class BulletLauncherSocket { - #define c(enumerator, enumstr) enumerator, + #define c(enumerator, enumstr, name) enumerator, #include "../Maps/BulletLauncherSockets.hpp" #undef c }; diff --git a/src/Mass/Mass_Armour.cpp b/src/Mass/Mass_Armour.cpp index ca4917d..29b6472 100644 --- a/src/Mass/Mass_Armour.cpp +++ b/src/Mass/Mass_Armour.cpp @@ -200,7 +200,7 @@ void Mass::getBulletLauncherAttachments() { auto& attachment = _armour.blAttachment[i]; Containers::StringView socket = attachment_prop->at("Socket_9_B9DBF30D4A1F0032A2BE2F8B342B35A9"_s)->value; - #define c(enumerator, strenum) if(socket == (strenum)) { attachment.socket = BulletLauncherSocket::enumerator; } else + #define c(enumerator, strenum, name) if(socket == (strenum)) { attachment.socket = BulletLauncherSocket::enumerator; } else #include "../Maps/BulletLauncherSockets.hpp" #undef c {