From 664d08469c4dff089efda98a5d18ede8ee453e2f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 22 Apr 2020 02:16:35 -0400 Subject: [PATCH] CEnvFxManager: Make use of std::array where applicable Same behavior, less code. --- Runtime/World/CEnvFxManager.hpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Runtime/World/CEnvFxManager.hpp b/Runtime/World/CEnvFxManager.hpp index d0bc82dfc..fa0645782 100644 --- a/Runtime/World/CEnvFxManager.hpp +++ b/Runtime/World/CEnvFxManager.hpp @@ -1,5 +1,6 @@ #pragma once +#include #include #include "Runtime/CToken.hpp" @@ -32,14 +33,10 @@ public: struct { s16 x, y, z; }; - s16 v[3]; + std::array v{}; }; - CVectorFixed8_8() { x = y = z = 0; } - CVectorFixed8_8(s16 xi, s16 yi, s16 zi) { - x = xi; - y = yi; - z = zi; - } + CVectorFixed8_8() = default; + CVectorFixed8_8(s16 xi, s16 yi, s16 zi) : v{xi, yi, zi} {} CVectorFixed8_8(const zeus::CVector3f& vec) { zeus::simd_floats f(vec.mSimd); x = s16(f[0] * 256.f);