summaryrefslogtreecommitdiff
path: root/src/npc
diff options
context:
space:
mode:
authoroctorock <79596758+octorock@users.noreply.github.com>2024-01-06 16:14:12 +0100
committeroctorock <79596758+octorock@users.noreply.github.com>2024-01-06 16:15:34 +0100
commit06dc15859867c7f2db22ea6e289e28ff12b0b6c9 (patch)
treeae4991dfff60d689953033fb75345cc65628684a /src/npc
parentaced0bef691dbc41bdd39b6e62662d2436877a4b (diff)
Rename vvv to actTile
Diffstat (limited to 'src/npc')
-rw-r--r--src/npc/npc5.c10
-rw-r--r--src/npc/townMinish.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/npc/npc5.c b/src/npc/npc5.c
index 3cc244e9..6e71501e 100644
--- a/src/npc/npc5.c
+++ b/src/npc/npc5.c
@@ -530,11 +530,11 @@ u32 CalcJumpDirection(Entity* this) {
};
static const u8 sTable[] = {
- // vvv, animationState
- VVV_43, DirectionSouth, VVV_42, DirectionNorth, VVV_45, DirectionEast, VVV_44, DirectionWest, 0x0,
+ // actTile, animationState
+ ACT_TILE_43, DirectionSouth, ACT_TILE_42, DirectionNorth, ACT_TILE_45, DirectionEast, ACT_TILE_44, DirectionWest, 0x0,
};
- u32 vvv;
+ u32 actTile;
u32 x;
s32 x_offset;
s32 y_offset;
@@ -544,11 +544,11 @@ u32 CalcJumpDirection(Entity* this) {
ptr = (s8*)sOffsets;
x_offset = ptr[x];
y_offset = ptr[x + 1];
- vvv = GetVvvRelativeToEntity(this, x_offset, y_offset);
+ actTile = GetActTileRelativeToEntity(this, x_offset, y_offset);
ptr2 = sTable;
do {
- if (*ptr2 != vvv || this->animationState != (ptr2[1] >> 2)) {
+ if (*ptr2 != actTile || this->animationState != (ptr2[1] >> 2)) {
continue;
}
diff --git a/src/npc/townMinish.c b/src/npc/townMinish.c
index 118b2587..b0f3fc68 100644
--- a/src/npc/townMinish.c
+++ b/src/npc/townMinish.c
@@ -811,8 +811,8 @@ void sub_0806B0E0(Entity* this, ScriptExecutionContext* context) {
int idx = 0;
// Checks if the dust is gone at these four tiles.
- if (GetVvvAtRoomCoords(56, 184, 1) == VVV_87 && GetVvvAtRoomCoords(72, 184, 1) == VVV_87 &&
- GetVvvAtRoomCoords(56, 200, 1) == VVV_87 && GetVvvAtRoomCoords(72, 200, 1) == VVV_87) {
+ if (GetActTileAtRoomCoords(56, 184, 1) == ACT_TILE_87 && GetActTileAtRoomCoords(72, 184, 1) == ACT_TILE_87 &&
+ GetActTileAtRoomCoords(56, 200, 1) == ACT_TILE_87 && GetActTileAtRoomCoords(72, 200, 1) == ACT_TILE_87) {
idx = 1;
}