Skip to content

Commit

Permalink
Merge pull request #2017 from PokemonSanFran/numSnowflakeSpritesConstant
Browse files Browse the repository at this point in the history
Added constant for NUM_SNOWFLAKE_SPRITES
  • Loading branch information
mrgriffin authored Jul 27, 2024
2 parents 7316e54 + 91b48a1 commit 30f8ccf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/constants/field_weather.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#define NUM_FOG_DIAGONAL_SPRITES 20
#define NUM_SANDSTORM_SPRITES 20
#define NUM_SWIRL_SANDSTORM_SPRITES 5
#define NUM_SNOWFLAKE_SPRITES 16

// Controls how the weather should be changing the screen palettes.
#define WEATHER_PAL_STATE_CHANGING_WEATHER 0
Expand Down
2 changes: 1 addition & 1 deletion src/field_weather_effect.c
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ void Snow_InitVars(void)
gWeatherPtr->weatherGfxLoaded = FALSE;
gWeatherPtr->targetColorMapIndex = 3;
gWeatherPtr->colorMapStepDelay = 20;
gWeatherPtr->targetSnowflakeSpriteCount = 16;
gWeatherPtr->targetSnowflakeSpriteCount = NUM_SNOWFLAKE_SPRITES;
gWeatherPtr->snowflakeVisibleCounter = 0;
}

Expand Down

0 comments on commit 30f8ccf

Please sign in to comment.