Fix grass graphic in Shuffle Grass (#5831)
Previously rendering grass as wrong kind in MQ Dodongo room above stairs Updated code to match decomp logic
This commit is contained in:
@@ -15,11 +15,10 @@ extern PlayState* gPlayState;
|
|||||||
extern void EnItem00_DrawRandomizedItem(EnItem00* enItem00, PlayState* play);
|
extern void EnItem00_DrawRandomizedItem(EnItem00* enItem00, PlayState* play);
|
||||||
|
|
||||||
void DrawTypeOfGrass(EnKusa* grassActor, Gfx* bushDList, Gfx* grassDList, PlayState* play) {
|
void DrawTypeOfGrass(EnKusa* grassActor, Gfx* bushDList, Gfx* grassDList, PlayState* play) {
|
||||||
// Actor params is -255 for regrowable grass.
|
if ((grassActor->actor.params & 3) == 0) {
|
||||||
if (grassActor->actor.params == -255) {
|
|
||||||
Gfx_DrawDListOpa(play, grassDList);
|
|
||||||
} else {
|
|
||||||
Gfx_DrawDListOpa(play, bushDList);
|
Gfx_DrawDListOpa(play, bushDList);
|
||||||
|
} else {
|
||||||
|
Gfx_DrawDListOpa(play, grassDList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user