diff options
author | Kaz <kazbloxmc@gmail.com> | 2020-05-25 22:33:31 -0400 |
---|---|---|
committer | Kaz <kazbloxmc@gmail.com> | 2020-05-25 22:33:31 -0400 |
commit | 391218127657ddd6535906e446cbb3f7a3ecb563 (patch) | |
tree | eda585bb85c18c98e145969d2669e1ffc368045b | |
parent | 08c053f0130dd8bedb81f4cdb1850a85c90ae89f (diff) |
water.c: Fix wording, elaborate more on cpuWait() too
-rw-r--r-- | src/battle/anim/water.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/battle/anim/water.c b/src/battle/anim/water.c index 9d89942aa..635416939 100644 --- a/src/battle/anim/water.c +++ b/src/battle/anim/water.c @@ -264,14 +264,21 @@ static void sub_80D3874(struct Sprite *sprite) } /* - Presumably a macro GF used to stall the CPU for - a bit of time so that DMA can finish, likely for - debugging purposes. + Many games use wasteful NOPs; some of which are + even moreso than regular ones. This is so that + hardware operations can finish. + + GF perhaps used a macro to stall the CPU for a bit + of time, presumably so that DMA can finish, likely + for debugging purposes. It looks to have been purged + by FireRed, as it is missing in there. + + It could have looked like this: */ #define cpuWait() \ { \ vu8 cpuDelay = 0; \ - cpu_delay = 0; \ + cpuDelay = 0; \ } /* |