Use constant for object event graphic
This commit is contained in:
+2
-1
@@ -26,6 +26,7 @@
|
|||||||
#include "fieldmap.h"
|
#include "fieldmap.h"
|
||||||
#include "strings.h"
|
#include "strings.h"
|
||||||
#include "constants/field_effects.h"
|
#include "constants/field_effects.h"
|
||||||
|
#include "constants/event_objects.h"
|
||||||
|
|
||||||
struct TeachyTvCtrlBlk
|
struct TeachyTvCtrlBlk
|
||||||
{
|
{
|
||||||
@@ -602,7 +603,7 @@ static void TeachyTvInitIo(void)
|
|||||||
|
|
||||||
static u8 TeachyTvSetupObjEventAndOam(void)
|
static u8 TeachyTvSetupObjEventAndOam(void)
|
||||||
{
|
{
|
||||||
u8 objId = CreateObjectGraphicsSprite(90, SpriteCallbackDummy, 0, 0, 8);
|
u8 objId = CreateObjectGraphicsSprite(OBJ_EVENT_GFX_TEACHY_TV_HOST, SpriteCallbackDummy, 0, 0, 8);
|
||||||
gSprites[objId].oam.priority = 2;
|
gSprites[objId].oam.priority = 2;
|
||||||
gSprites[objId].invisible = 1;
|
gSprites[objId].invisible = 1;
|
||||||
return objId;
|
return objId;
|
||||||
|
|||||||
Reference in New Issue
Block a user