mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-08-25 19:05:30 -05:00
Replace "none" values with -1 for clarity
This commit is contained in:
@@ -146,7 +146,7 @@ enum PSSPoffinFeedMsg {
|
||||
PSS_MSG_MON_WONT_EAT_MORE = 0xFF,
|
||||
};
|
||||
|
||||
#define PSS_MOVE_NONE 0xFFFFFFFF
|
||||
#define PSS_MOVE_NONE -1
|
||||
#define PSS_SUBSCREEN_BUTTON_NONE 0xFF
|
||||
|
||||
#define POINTS_PER_APPEAL_HEART 10
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define POKEPLATINUM_TOUCH_SCREEN_H
|
||||
|
||||
#define TOUCHSCREEN_USE_CIRCLE 0xfe
|
||||
#define TOUCHSCREEN_INPUT_NONE 0xFFFFFFFF
|
||||
#define TOUCHSCREEN_INPUT_NONE -1
|
||||
|
||||
/**
|
||||
* These two structs represent regions that can be checked on the touch screen.
|
||||
|
||||
@@ -32,7 +32,7 @@ static const PSSSubscreenButton sSubscreenButtons_Normal[] = {
|
||||
{ PSS_PAGE_CONTEST_MOVES, 3, 22, 15 },
|
||||
{ PSS_PAGE_RIBBONS, 4, 25, 10 },
|
||||
{ PSS_PAGE_EXIT, 4, 26, 4 },
|
||||
{ PSS_PAGE_NONE, 255, 255, 255 }
|
||||
{ PSS_PAGE_NONE, -1, -1, -1 }
|
||||
};
|
||||
|
||||
static const PSSSubscreenButton sSubscreenButtons_NoContestInfo[] = {
|
||||
@@ -41,13 +41,13 @@ static const PSSSubscreenButton sSubscreenButtons_NoContestInfo[] = {
|
||||
{ PSS_PAGE_SKILLS, 2, 14, 18 },
|
||||
{ PSS_PAGE_BATTLE_MOVES, 3, 22, 15 },
|
||||
{ PSS_PAGE_EXIT, 4, 26, 9 },
|
||||
{ PSS_PAGE_NONE, 255, 255, 255 }
|
||||
{ PSS_PAGE_NONE, -1, -1, -1 }
|
||||
};
|
||||
|
||||
static const PSSSubscreenButton sSubscreenButtons_UnusedMovesOnly[] = {
|
||||
{ PSS_PAGE_BATTLE_MOVES, 3, 10, 18 },
|
||||
{ PSS_PAGE_CONTEST_MOVES, 3, 17, 18 },
|
||||
{ PSS_PAGE_NONE, 255, 255, 255 }
|
||||
{ PSS_PAGE_NONE, -1, -1, -1 }
|
||||
};
|
||||
|
||||
static const PSSSubscreenButton *sSubscreenButtonTypes[] = {
|
||||
@@ -65,7 +65,7 @@ static const TouchScreenRect sSubscreenRectangles_Normal[] = {
|
||||
{ 120, 159, 176, 215 },
|
||||
{ 80, 119, 200, 239 },
|
||||
{ 32, 71, 208, 247 },
|
||||
{ 255, 0, 0, 0 }
|
||||
{ -1, 0, 0, 0 }
|
||||
};
|
||||
|
||||
static const TouchScreenRect sSubscreenRectangles_NoContestInfo[] = {
|
||||
@@ -74,13 +74,13 @@ static const TouchScreenRect sSubscreenRectangles_NoContestInfo[] = {
|
||||
{ 144, 183, 108, 147 },
|
||||
{ 120, 159, 172, 211 },
|
||||
{ 72, 111, 204, 243 },
|
||||
{ 255, 0, 0, 0 }
|
||||
{ -1, 0, 0, 0 }
|
||||
};
|
||||
|
||||
static const TouchScreenRect sSubscreenRectangles_UnusedMovesOnly[] = {
|
||||
{ 144, 183, 80, 119 },
|
||||
{ 144, 183, 136, 175 },
|
||||
{ 255, 0, 0, 0 }
|
||||
{ -1, 0, 0, 0 }
|
||||
};
|
||||
|
||||
static const TouchScreenRect *sSubscreenRectangles[] = {
|
||||
|
||||
Reference in New Issue
Block a user