diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2022-02-23 08:04:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-23 08:04:16 -0500 |
commit | f7ba502c5267f136b685d2582a00615deaa29b53 (patch) | |
tree | 712c9ace5ed9c462d1d9e1b85b3e68dbde425344 /src | |
parent | 3765c1e7f155ce42b5808117e97bf287e7006d6d (diff) | |
parent | f826a5a82d3563cf30f7acd5270f200119cc6745 (diff) |
Merge pull request #1637 from cbt6/pc-location
Use constants for PC locations
Diffstat (limited to 'src')
-rw-r--r-- | src/field_specials.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/field_specials.c b/src/field_specials.c index f749ea8fc..a4cdafafc 100644 --- a/src/field_specials.c +++ b/src/field_specials.c @@ -1069,11 +1069,11 @@ static void PCTurnOffEffect(void) dy = -1; break; } - if (gSpecialVar_0x8004 == 0) + if (gSpecialVar_0x8004 == PC_LOCATION_OTHER) tileId = METATILE_Building_PC_Off; - else if (gSpecialVar_0x8004 == 1) + else if (gSpecialVar_0x8004 == PC_LOCATION_BRENDANS_HOUSE) tileId = METATILE_BrendansMaysHouse_BrendanPC_Off; - else if (gSpecialVar_0x8004 == 2) + else if (gSpecialVar_0x8004 == PC_LOCATION_MAYS_HOUSE) tileId = METATILE_BrendansMaysHouse_MayPC_Off; MapGridSetMetatileIdAt(gSaveBlock1Ptr->pos.x + dx + MAP_OFFSET, gSaveBlock1Ptr->pos.y + dy + MAP_OFFSET, tileId | MAPGRID_COLLISION_MASK); DrawWholeMapView(); |