diff options
author | Marcus Huderle <huderlem@gmail.com> | 2018-01-20 15:24:20 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-20 15:24:20 -0800 |
commit | 185846f20840c03ba1616c4d0c6eca949147512c (patch) | |
tree | 2ee03f3c11f552976589d1ac0b0de474bf78fb96 /src/field/overworld.c | |
parent | e2a0522780d7124a392bf028c9c1f50c4213b460 (diff) | |
parent | 003ed9293b2c51f0481ed31f0e0459cbecbf757e (diff) |
Merge pull request #544 from huderlem/weather
Further document weather
Diffstat (limited to 'src/field/overworld.c')
-rw-r--r-- | src/field/overworld.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/field/overworld.c b/src/field/overworld.c index a6d34e103..07453e4fe 100644 --- a/src/field/overworld.c +++ b/src/field/overworld.c @@ -590,7 +590,7 @@ bool8 sub_80538D0(u16 x, u16 y) void sub_80538F0(u8 mapGroup, u8 mapNum) { - s32 i; + s32 paletteIndex; Overworld_SetWarpDestination(mapGroup, mapNum, -1, -1, -1); sub_8053F0C(); @@ -611,8 +611,8 @@ void sub_80538F0(u8 mapGroup, u8 mapNum) sub_8056D38(gMapHeader.mapData); apply_map_tileset2_palette(gMapHeader.mapData); - for (i = 6; i < 12; i++) - sub_807D874(i); + for (paletteIndex = 6; paletteIndex < 12; paletteIndex++) + ApplyWeatherGammaShiftToPal(paletteIndex); sub_8072ED0(); UpdateLocationHistoryForRoamer(); |