- use field initializers for VoxelOptions

This commit is contained in:
Christoph Oelckers 2022-10-20 20:17:14 +02:00
parent 70df444660
commit 96e98fc4a8
1 changed files with 8 additions and 13 deletions

View File

@ -52,19 +52,14 @@
struct VoxelOptions struct VoxelOptions
{ {
VoxelOptions() int DroppedSpin = 0;
: DroppedSpin(0), PlacedSpin(0), Scale(1.), AngleOffset(DAngle::fromDeg(90.)), OverridePalette(false), int PlacedSpin = 0;
PitchFromMomentum(false), UseActorPitch(false), UseActorRoll(false) double Scale = 1;
{} DAngle AngleOffset = DAngle90;
bool OverridePalette = false;
int DroppedSpin; bool PitchFromMomentum = false;
int PlacedSpin; bool UseActorPitch = false;
double Scale; bool UseActorRoll = false;
DAngle AngleOffset;
bool OverridePalette;
bool PitchFromMomentum;
bool UseActorPitch;
bool UseActorRoll;
}; };
void VOX_AddVoxel(int sprnum, int frame, FVoxelDef* def); void VOX_AddVoxel(int sprnum, int frame, FVoxelDef* def);