diff options
author | Marcus Huderle <huderlem@gmail.com> | 2018-06-14 08:08:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-14 08:08:51 -0500 |
commit | bebcea402921d23232f7657fcfdab810f8699399 (patch) | |
tree | a59ea431d486bf23cde76e35ca789d1a0d113f3e /src/naming_screen.c | |
parent | f810c9ecade3d793a139f67cd8f63effc5644b99 (diff) | |
parent | e01dd90bb36f850fe88f2b1edae65c74b3bc48b1 (diff) |
Merge pull request #263 from huderlem/event_object_movement
Sync event object movement with pokeruby
Diffstat (limited to 'src/naming_screen.c')
-rw-r--r-- | src/naming_screen.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/naming_screen.c b/src/naming_screen.c index 0e350aa35..f99d23bc3 100644 --- a/src/naming_screen.c +++ b/src/naming_screen.c @@ -11,7 +11,7 @@ #include "pokemon.h" #include "field_specials.h" #include "field_player_avatar.h" -#include "field_map_obj.h" +#include "event_object_movement.h" #include "event_data.h" #include "constants/vars.h" #include "constants/songs.h" @@ -25,7 +25,7 @@ #include "menu.h" #include "text_window.h" #include "overworld.h" -#include "constants/map_objects.h" +#include "constants/event_objects.h" EWRAM_DATA static struct NamingScreenData *gNamingScreenData = NULL; extern u16 gKeyRepeatStartDelay; @@ -1142,7 +1142,7 @@ static void NamingScreen_CreatePlayerIcon(void) u8 spriteId; rivalGfxId = GetRivalAvatarGraphicsIdByStateIdAndGender(0, gNamingScreenData->monSpecies); - spriteId = AddPseudoFieldObject(rivalGfxId, SpriteCallbackDummy, 0x38, 0x25, 0); + spriteId = AddPseudoEventObject(rivalGfxId, SpriteCallbackDummy, 0x38, 0x25, 0); gSprites[spriteId].oam.priority = 3; StartSpriteAnim(&gSprites[spriteId], 4); } @@ -1169,7 +1169,7 @@ static void NamingScreen_CreateWandaDadIcon(void) { u8 spriteId; - spriteId = AddPseudoFieldObject(MAP_OBJ_GFX_MAN_1, SpriteCallbackDummy, 0x38, 0x25, 0); + spriteId = AddPseudoEventObject(EVENT_OBJ_GFX_MAN_1, SpriteCallbackDummy, 0x38, 0x25, 0); gSprites[spriteId].oam.priority = 3; StartSpriteAnim(&gSprites[spriteId], 4); } |