You've already forked Microtransactions64
mirror of
https://github.com/Print-and-Panic/Microtransactions64.git
synced 2026-01-21 10:17:19 -08:00
Added area number define, fixed undefined init value
This commit is contained in:
@@ -123,6 +123,8 @@
|
||||
// Visual debug enables some collision visuals. Tapping Right on the dpad will cycle between visual hitboxes, visual surfaces, both, and neither.
|
||||
// If puppyprint is enabled, then this can be cycled only while the screen is active.
|
||||
//#define VISUAL_DEBUG
|
||||
// Number of supported areas per level.
|
||||
#define AREA_COUNT 8
|
||||
|
||||
// BUG/GAME QOL FIXES
|
||||
// Fix instant warp offset not working when warping across different areas
|
||||
|
||||
@@ -316,7 +316,7 @@ static void level_cmd_init_level(void) {
|
||||
clear_objects();
|
||||
clear_areas();
|
||||
main_pool_push_state();
|
||||
for (u8 clearPointers; clearPointers < 8; clearPointers++) {
|
||||
for (u8 clearPointers = 0; clearPointers < AREA_COUNT; clearPointers++) {
|
||||
gAreaSkyboxStart[clearPointers] = 0;
|
||||
gAreaSkyboxEnd[clearPointers] = 0;
|
||||
}
|
||||
|
||||
@@ -264,7 +264,7 @@ void load_mario_area(void) {
|
||||
}
|
||||
if (gAreaSkyboxStart[gCurrAreaIndex-1]) {
|
||||
load_segment_decompress(0x0A, gAreaSkyboxStart[gCurrAreaIndex-1], gAreaSkyboxEnd[gCurrAreaIndex-1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void unload_mario_area(void) {
|
||||
|
||||
@@ -86,8 +86,8 @@ u32 gGlobalTimer = 0;
|
||||
#ifdef WIDE
|
||||
s16 gWidescreen;
|
||||
#endif
|
||||
u8 *gAreaSkyboxStart[7];
|
||||
u8 *gAreaSkyboxEnd[7];
|
||||
u8 *gAreaSkyboxStart[AREA_COUNT-1];
|
||||
u8 *gAreaSkyboxEnd[AREA_COUNT-1];
|
||||
|
||||
// Framebuffer rendering values (max 3)
|
||||
u16 sRenderedFramebuffer = 0;
|
||||
|
||||
@@ -49,8 +49,8 @@ extern u8 gBorderHeight;
|
||||
#ifdef CUSTOM_DEBUG
|
||||
extern u8 gCustomDebugMode;
|
||||
#endif
|
||||
extern u8 *gAreaSkyboxStart[7];
|
||||
extern u8 *gAreaSkyboxEnd[7];
|
||||
extern u8 *gAreaSkyboxStart[AREA_COUNT-1];
|
||||
extern u8 *gAreaSkyboxEnd[AREA_COUNT-1];
|
||||
#ifdef EEP
|
||||
extern s8 gEepromProbe;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user