Added constant for NUM_SNOWFLAKE_SPRITES

This commit is contained in:
pkmnsnfrn 2024-07-26 21:57:42 -07:00
parent 502eedaed8
commit 91b48a10d4
2 changed files with 2 additions and 1 deletions

View file

@ -8,6 +8,7 @@
#define NUM_FOG_DIAGONAL_SPRITES 20 #define NUM_FOG_DIAGONAL_SPRITES 20
#define NUM_SANDSTORM_SPRITES 20 #define NUM_SANDSTORM_SPRITES 20
#define NUM_SWIRL_SANDSTORM_SPRITES 5 #define NUM_SWIRL_SANDSTORM_SPRITES 5
#define NUM_SNOWFLAKE_SPRITES 16
// Controls how the weather should be changing the screen palettes. // Controls how the weather should be changing the screen palettes.
#define WEATHER_PAL_STATE_CHANGING_WEATHER 0 #define WEATHER_PAL_STATE_CHANGING_WEATHER 0

View file

@ -770,7 +770,7 @@ void Snow_InitVars(void)
gWeatherPtr->weatherGfxLoaded = FALSE; gWeatherPtr->weatherGfxLoaded = FALSE;
gWeatherPtr->targetColorMapIndex = 3; gWeatherPtr->targetColorMapIndex = 3;
gWeatherPtr->colorMapStepDelay = 20; gWeatherPtr->colorMapStepDelay = 20;
gWeatherPtr->targetSnowflakeSpriteCount = 16; gWeatherPtr->targetSnowflakeSpriteCount = NUM_SNOWFLAKE_SPRITES;
gWeatherPtr->snowflakeVisibleCounter = 0; gWeatherPtr->snowflakeVisibleCounter = 0;
} }