summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-09-03 16:17:29 -0400
committerGriffinR <griffin.g.richards@gmail.com>2020-09-03 16:17:29 -0400
commit627373c9631ed2bc9da1a50aa5aa2bb1e27285ab (patch)
tree32f08e83d511b63a7bfe60a08e87eb86a69ca50c /src
parent08a8aad65a16d7846c06f669218b5190a31b6b33 (diff)
Fix segment typo
Diffstat (limited to 'src')
-rw-r--r--src/cable_car.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cable_car.c b/src/cable_car.c
index 81858a329..acd0bc7a5 100644
--- a/src/cable_car.c
+++ b/src/cable_car.c
@@ -68,7 +68,7 @@ struct CableCar
static EWRAM_DATA struct CableCar *sCableCar = NULL;
static EWRAM_DATA u8 sGroundX_Up = 0;
static EWRAM_DATA u8 sGroundY_Up = 0;
-static EWRAM_DATA u8 sGroundSegemntY_Up = 0;
+static EWRAM_DATA u8 sGroundSegmentY_Up = 0;
static EWRAM_DATA u8 sGroundX_Down = 0;
static EWRAM_DATA u8 sGroundY_Down = 0;
static EWRAM_DATA u8 sGroundSegmentY_Down = 0;
@@ -989,13 +989,13 @@ static void DrawNextGroundSegmentGoingUp(void)
sCableCar->groundYBase = sCableCar->bg0VerticalOffset;
sCableCar->groundSegmentXStart = (sCableCar->groundSegmentXStart + 30) % 32;
sCableCar->groundTileIdx -= 2;
- sGroundSegemntY_Up = (sCableCar->groundSegmentYStart + 23) % 32;
+ sGroundSegmentY_Up = (sCableCar->groundSegmentYStart + 23) % 32;
// Draw next segment
for (i = 0; i < ARRAY_COUNT(sCableCar->groundTileBuffer); i++)
{
sGroundX_Up = sCableCar->groundSegmentXStart;
- sGroundY_Up = (sGroundSegemntY_Up + i) % 32;
+ sGroundY_Up = (sGroundSegmentY_Up + i) % 32;
FillBgTilemapBufferRect(0, sCableCar->groundTileBuffer[i][sCableCar->groundTileIdx], sGroundX_Up, sGroundY_Up, 1, 1, 17);
sGroundX_Up = (sGroundX_Up + 1) % 32;
FillBgTilemapBufferRect(0, sCableCar->groundTileBuffer[i][sCableCar->groundTileIdx + 1], sGroundX_Up, sGroundY_Up, 1, 1, 17);