mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-03-12 10:20:12 +03:00
Fix level select
This commit is contained in:
parent
95e5f4f07a
commit
4f95948de5
@ -12,27 +12,28 @@ void Map_801A914C(void);
|
|||||||
void Map_801A6628(void);
|
void Map_801A6628(void);
|
||||||
|
|
||||||
void Map_LevelSelect(void) {
|
void Map_LevelSelect(void) {
|
||||||
|
static planetIndex = 0;
|
||||||
static char* sLevelSelectPlanetNames[] = {
|
static char* sLevelSelectPlanetNames[] = {
|
||||||
"METEO", "AREA 6", "BOLSE", "SECTOR Z", "SECTOR X", "SECTOR Y", "KATINA", "MACBETH",
|
"METEO", "AREA 6", "BOLSE", "SECTOR Z", "SECTOR X", "SECTOR Y", "KATINA", "MACBETH",
|
||||||
"ZONESS", "CORNERIA", "TITANIA", "AQUAS", "FORTUNA", "VENOM", "SOLAR",
|
"ZONESS", "CORNERIA", "TITANIA", "AQUAS", "FORTUNA", "VENOM", "SOLAR",
|
||||||
};
|
};
|
||||||
|
|
||||||
if (gControllerPress[0].button & L_JPAD) {
|
if (gControllerPress[0].button & L_JPAD) {
|
||||||
gCurrentPlanet--;
|
planetIndex--;
|
||||||
if (gCurrentPlanet < 0) {
|
if (planetIndex < 0) {
|
||||||
gCurrentPlanet = 14;
|
planetIndex = 14;
|
||||||
}
|
}
|
||||||
sCurrentPlanetId = sPlanetList[gCurrentPlanet];
|
sCurrentPlanetId = sPlanetList[planetIndex];
|
||||||
Map_801A6368();
|
Map_801A6368();
|
||||||
Map_801A914C();
|
Map_801A914C();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gControllerPress[0].button & R_JPAD) {
|
if (gControllerPress[0].button & R_JPAD) {
|
||||||
gCurrentPlanet++;
|
planetIndex++;
|
||||||
if (gCurrentPlanet > 14) {
|
if (planetIndex > 14) {
|
||||||
gCurrentPlanet = 0;
|
planetIndex = 0;
|
||||||
}
|
}
|
||||||
sCurrentPlanetId = sPlanetList[gCurrentPlanet];
|
sCurrentPlanetId = sPlanetList[planetIndex];
|
||||||
Map_801A6368();
|
Map_801A6368();
|
||||||
Map_801A914C();
|
Map_801A914C();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user