Mass: add a new value to BulletLauncherSockets.hpp.
This commit is contained in:
parent
ddad6536c6
commit
75d77413f6
3 changed files with 8 additions and 8 deletions
|
@ -15,10 +15,10 @@
|
|||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#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
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
|
@ -200,7 +200,7 @@ void Mass::getBulletLauncherAttachments() {
|
|||
auto& attachment = _armour.blAttachment[i];
|
||||
|
||||
Containers::StringView socket = attachment_prop->at<StringProperty>("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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue