Bug fix: Follower NPC no longer retains bike sprite after white out (#7120)

This commit is contained in:
Bivurnum 2025-06-15 04:10:32 -05:00 committed by GitHub
parent cb331aa133
commit 459946ac9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1172,7 +1172,7 @@ void CreateFollowerNPCAvatar(void)
void FollowerNPC_HandleSprite(void)
{
if (CheckFollowerNPCFlag(FOLLOWER_NPC_FLAG_CAN_BIKE))
if (TestPlayerAvatarFlags(PLAYER_AVATAR_FLAG_BIKE) && CheckFollowerNPCFlag(FOLLOWER_NPC_FLAG_CAN_BIKE))
{
if (gPlayerAvatar.flags & PLAYER_AVATAR_FLAG_MACH_BIKE)
SetFollowerNPCSprite(FOLLOWER_NPC_SPRITE_INDEX_MACH_BIKE);