diff options
Diffstat (limited to 'src/noise.h')
-rw-r--r-- | src/noise.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/noise.h b/src/noise.h index 074bedb92..9f9e2af6d 100644 --- a/src/noise.h +++ b/src/noise.h @@ -85,8 +85,11 @@ struct NoiseParams { // Convenience macros for getting/setting NoiseParams in Settings -#define getNoiseParams(x, y) getStruct((x), "f,f,v3,s32,s32,f", &(y), sizeof(y)) -#define setNoiseParams(x, y) setStruct((x), "f,f,v3,s32,s32,f", &(y)) + +#define NOISEPARAMS_FMT_STR "f,f,v3,s32,s32,f" + +#define getNoiseParams(x, y) getStruct((x), NOISEPARAMS_FMT_STR, &(y), sizeof(y)) +#define setNoiseParams(x, y) setStruct((x), NOISEPARAMS_FMT_STR, &(y)) class Noise { public: |