mirror of https://github.com/AxioDL/metaforce.git
CBurstFire: Use std::array where applicable
Makes the array type strongly typed and prevents implicit array to pointer decay.
This commit is contained in:
parent
adf9610138
commit
8dcffbb67f
|
@ -1,7 +1,10 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <array>
|
||||||
|
|
||||||
#include "Runtime/GCNTypes.hpp"
|
#include "Runtime/GCNTypes.hpp"
|
||||||
#include "Runtime/rstl.hpp"
|
#include "Runtime/rstl.hpp"
|
||||||
|
|
||||||
#include <zeus/CVector3f.hpp>
|
#include <zeus/CVector3f.hpp>
|
||||||
|
|
||||||
namespace urde {
|
namespace urde {
|
||||||
|
@ -9,7 +12,7 @@ class CStateManager;
|
||||||
|
|
||||||
struct SBurst {
|
struct SBurst {
|
||||||
s32 x0_randomSelectionWeight;
|
s32 x0_randomSelectionWeight;
|
||||||
s32 x4_shotAngles[8];
|
std::array<s32, 8> x4_shotAngles;
|
||||||
float x24_timeToNextShot;
|
float x24_timeToNextShot;
|
||||||
float x28_timeToNextShotVariance;
|
float x28_timeToNextShotVariance;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue