summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/battle/anim/water.c15
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; \
}
/*