diff options
author | camthesaxman <cameronghall@cox.net> | 2017-12-05 12:42:30 -0600 |
---|---|---|
committer | camthesaxman <cameronghall@cox.net> | 2017-12-05 12:42:30 -0600 |
commit | 19fbf024ff7e5bedc0f297a44c7df298a9bd0ef4 (patch) | |
tree | e9a928ac0d8eaaca476d8704b95fbf5f6838d994 /src/hall_of_fame.c | |
parent | caa13f877797edbb7a1e13bf00b537bafbd4315a (diff) | |
parent | 00896cb3b5813cb843e5e1abd4cbc9ff0ad3a632 (diff) |
fix merge conflicts
Diffstat (limited to 'src/hall_of_fame.c')
-rw-r--r-- | src/hall_of_fame.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/hall_of_fame.c b/src/hall_of_fame.c index 421f24a0e..c5394834b 100644 --- a/src/hall_of_fame.c +++ b/src/hall_of_fame.c @@ -22,7 +22,7 @@ #include "international_string_util.h" #include "unknown_task.h" #include "trig.h" -#include "rng.h" +#include "random.h" #include "event_data.h" #include "overworld.h" @@ -581,9 +581,9 @@ static void Task_Hof_SetMonDisplayTask(u8 taskId) gTasks[taskId].func = Task_Hof_DisplayMon; } -#define tDestinationX data1 -#define tDestinationY data2 -#define tSpecies data7 +#define tDestinationX data[1] +#define tDestinationY data[2] +#define tSpecies data[7] static void Task_Hof_DisplayMon(u8 taskId) { @@ -614,7 +614,7 @@ static void Task_Hof_DisplayMon(u8 taskId) spriteId = sub_818D3E4(currMon->species, currMon->tid, currMon->personality, 1, xPos, yPos, currMonId, 0xFFFF); gSprites[spriteId].tDestinationX = field4; gSprites[spriteId].tDestinationY = field6; - gSprites[spriteId].data0 = 0; + gSprites[spriteId].data[0] = 0; gSprites[spriteId].tSpecies = currMon->species; gSprites[spriteId].callback = SpriteCB_GetOnScreenAndAnimate; gTasks[taskId].tMonSpriteId(currMonId) = spriteId; @@ -1405,13 +1405,13 @@ static void sub_81751A4(struct Sprite* sprite) u8 tableID; sprite->pos2.y++; - sprite->pos2.y += sprite->data1; + sprite->pos2.y += sprite->data[1]; - tableID = sprite->data0; + tableID = sprite->data[0]; rand = (Random() % 4) + 8; sprite->pos2.x = rand * gSineTable[tableID] / 256; - sprite->data0 += 4; + sprite->data[0] += 4; } } @@ -1429,9 +1429,9 @@ static bool8 sub_81751FC(void) StartSpriteAnim(sprite, Random() % 17); if (Random() & 3) - sprite->data1 = 0; + sprite->data[1] = 0; else - sprite->data1 = 1; + sprite->data[1] = 1; return FALSE; } |