mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-11 09:07:41 +00:00
CCameraShakeData: Make classes and structs constexpr where applicable
Same behavior, but allows eliminating file-scope initializers needing to be run on program start.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
namespace urde {
|
||||
namespace {
|
||||
const CCameraShakeData CameraShaker{0.125f, 0.25f};
|
||||
constexpr CCameraShakeData CameraShaker{0.125f, 0.25f};
|
||||
constexpr std::array<u16, 2> kSoundId{SFXwpn_fire_plasma_normal, SFXwpn_fire_plasma_charged};
|
||||
} // Anonymous namespace
|
||||
|
||||
|
||||
Reference in New Issue
Block a user