From 391218127657ddd6535906e446cbb3f7a3ecb563 Mon Sep 17 00:00:00 2001 From: Kaz Date: Mon, 25 May 2020 22:33:31 -0400 Subject: water.c: Fix wording, elaborate more on cpuWait() too --- src/battle/anim/water.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src') 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; \ } /* -- cgit v1.2.3