Merge pull request #2039 from Scyrous/patch-1
Bugfix for cable car hikerGraphicsIds array
This commit is contained in:
commit
37d104f7a5
1 changed files with 5 additions and 1 deletions
|
@ -880,8 +880,12 @@ static void CreateCableCarSprites(void)
|
||||||
// 1/64 chance for an NPC to appear hiking on the ground below the Cable Car
|
// 1/64 chance for an NPC to appear hiking on the ground below the Cable Car
|
||||||
if ((rval % 64) == 0)
|
if ((rval % 64) == 0)
|
||||||
{
|
{
|
||||||
// Unclear if this was intentional, but the - 1 in the below ARRAY_COUNT means the Zigzagoon is never used
|
// BUGFIX: The - 1 in the below ARRAY_COUNT means the Zigzagoon is never used
|
||||||
|
#ifdef BUGFIX
|
||||||
|
spriteId = CreateObjectGraphicsSprite(hikerGraphicsIds[rval % ARRAY_COUNT(hikerGraphicsIds)], hikerCallbacks[GOING_DOWN], hikerCoords[GOING_DOWN][0], hikerCoords[GOING_DOWN][1], 106);
|
||||||
|
#else
|
||||||
spriteId = CreateObjectGraphicsSprite(hikerGraphicsIds[rval % (ARRAY_COUNT(hikerGraphicsIds) - 1)], hikerCallbacks[GOING_DOWN], hikerCoords[GOING_DOWN][0], hikerCoords[GOING_DOWN][1], 106);
|
spriteId = CreateObjectGraphicsSprite(hikerGraphicsIds[rval % (ARRAY_COUNT(hikerGraphicsIds) - 1)], hikerCallbacks[GOING_DOWN], hikerCoords[GOING_DOWN][0], hikerCoords[GOING_DOWN][1], 106);
|
||||||
|
#endif
|
||||||
if (spriteId != MAX_SPRITES)
|
if (spriteId != MAX_SPRITES)
|
||||||
{
|
{
|
||||||
gSprites[spriteId].oam.priority = 2;
|
gSprites[spriteId].oam.priority = 2;
|
||||||
|
|
Loading…
Reference in a new issue