mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-08-17 13:50:29 -04:00
Changes (#9)
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
#include <libultra/gbi.h>
|
||||
#include <main.h>
|
||||
#include <defines.h>
|
||||
#include "courses/toads_turnpike/course_data.h"
|
||||
|
||||
/**
|
||||
* @brief Renders the box truck actor.
|
||||
|
||||
+3
-4
@@ -65,8 +65,7 @@ Gfx *D_8018E75C;
|
||||
s32 gNumD_8018E768Entries;
|
||||
struct_8018E768_entry D_8018E768[D_8018E768_SIZE];
|
||||
s32 gCycleFlashMenu;
|
||||
s8 D_8018E7AC[4];
|
||||
s8 D_8018E7B0;
|
||||
s8 D_8018E7AC[5];
|
||||
u32 D_8018E7B8[4];
|
||||
u32 D_8018E7C8;
|
||||
u32 D_8018E7D0[4];
|
||||
@@ -2658,7 +2657,7 @@ void func_80094C60(void) {
|
||||
void func_80095574(void) {
|
||||
s32 var_v0;
|
||||
|
||||
if ((D_8018EE0C < 3) || (D_8018E7B0 != 0)) {
|
||||
if ((D_8018EE0C < 3) || (D_8018E7AC[4] != 0)) {
|
||||
func_800A8230();
|
||||
}
|
||||
if (gDebugMenuSelection >= 2) {
|
||||
@@ -4441,7 +4440,7 @@ Gfx *func_8009BA74(Gfx *arg0, MkTexture *arg1, s32 column, s32 row) {
|
||||
}
|
||||
temp_v0_3 = (u8*)func_8009B8C4(temp_v0->textureData);
|
||||
if (temp_v0_3 != 0) {
|
||||
if (D_8018E7B0 != 4) {
|
||||
if (D_8018E7AC[4] != 4) {
|
||||
arg0 = func_80095E10(arg0, var_s4, 0x00000400, 0x00000400, 0, 0, temp_v0->width, temp_v0->height, temp_v0->dX + column, temp_v0->dY + row, temp_v0_3, temp_v0->width, temp_v0->height);
|
||||
} else {
|
||||
arg0 = func_800987D0(arg0, 0U, 0U, temp_v0->width, temp_v0->height, temp_v0->dX + column, temp_v0->dY + row, temp_v0_3, temp_v0->width, temp_v0->height);
|
||||
|
||||
@@ -436,7 +436,6 @@ extern s32 gNumD_8018E768Entries;
|
||||
extern struct_8018E768_entry D_8018E768[D_8018E768_SIZE];
|
||||
extern s32 gCycleFlashMenu;
|
||||
extern s8 D_8018E7AC[];
|
||||
extern s8 D_8018E7B0;
|
||||
extern u32 D_8018E7B8[];
|
||||
extern u32 D_8018E7C8;
|
||||
extern u32 D_8018E7D0[];
|
||||
|
||||
@@ -185,7 +185,7 @@ Vtx gBalloonVertexPlane2[] = {
|
||||
};
|
||||
|
||||
u8 D_800E52D0[] = {
|
||||
#include "assets/onomatopoeia/gTLUTOnomatopoeia.inc.c"
|
||||
#include "assets/code/some_data/gTLUTOnomatopoeia.rgba16.inc.c"
|
||||
};
|
||||
|
||||
u8 *gCourseOutlineTextures[] = {
|
||||
|
||||
+1
-1
@@ -2004,7 +2004,7 @@ void func_800B44BC(void) {
|
||||
// Likely checks that the user is actually in the menus and not racing.
|
||||
bool func_800B4520(void) {
|
||||
|
||||
if ((D_8018E7B0 == 2) || (D_8018E7B0 == 3) || (D_8018E7B0 == 4) || (D_8018E7B0 == 7)) {
|
||||
if ((D_8018E7AC[4] == 2) || (D_8018E7AC[4] == 3) || (D_8018E7AC[4] == 4) || (D_8018E7AC[4] == 7)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
+2
-1
@@ -1,11 +1,12 @@
|
||||
#include <libultraship.h>
|
||||
#include <libultra/gbi.h>
|
||||
#include <course_offsets.h>
|
||||
#include <macros.h>
|
||||
#include <mk64.h>
|
||||
#include <sounds.h>
|
||||
#include <common_structs.h>
|
||||
#include <actor_types.h>
|
||||
#include <defines.h>
|
||||
#include <libultra/gbi.h>
|
||||
|
||||
#include "code_800029B0.h"
|
||||
#include "main.h"
|
||||
|
||||
@@ -129,51 +129,8 @@ extern s16 gCurrentCourseId;
|
||||
extern u16 isCrossingTriggeredByIndex[];
|
||||
extern Lights1 D_800DC610[];
|
||||
|
||||
extern Gfx D_0D005338[];
|
||||
extern Gfx D_0D005368[];
|
||||
extern Gfx D_0D007B20[];
|
||||
|
||||
extern Gfx toads_turnpike_dl_0[];
|
||||
extern Gfx toads_turnpike_dl_1[];
|
||||
extern Gfx toads_turnpike_dl_2[];
|
||||
extern Gfx toads_turnpike_dl_3[];
|
||||
extern Gfx toads_turnpike_dl_4[];
|
||||
extern Gfx toads_turnpike_dl_5[];
|
||||
extern Gfx toads_turnpike_dl_6[];
|
||||
extern Gfx toads_turnpike_dl_7[];
|
||||
extern Gfx toads_turnpike_dl_8[];
|
||||
extern Gfx toads_turnpike_dl_9[];
|
||||
extern Gfx toads_turnpike_dl_10[];
|
||||
extern Gfx toads_turnpike_dl_11[];
|
||||
|
||||
extern s32 D_80162DF8;
|
||||
|
||||
extern Gfx D_0D001750[];
|
||||
extern Gfx D_0D001780[];
|
||||
extern Gfx D_0D001798[];
|
||||
extern Gfx D_0D0017B0[];
|
||||
extern Gfx D_0D0017C8[];
|
||||
extern Gfx D_0D0017E0[];
|
||||
extern Gfx D_0D0017F8[];
|
||||
extern Gfx D_0D001810[];
|
||||
extern Gfx D_0D001828[];
|
||||
extern Gfx D_0D001B90[];
|
||||
extern Gfx D_0D001BD8[];
|
||||
extern Gfx D_0D001C20[];
|
||||
extern Gfx D_0D001C88[];
|
||||
extern Gfx D_0D002EE8[];
|
||||
extern Gfx common_model_fake_itembox[];
|
||||
extern Gfx itemBoxQuestionMarkModel[];
|
||||
extern Gfx D_0D003090[];
|
||||
extern Gfx D_0D0030F8[];
|
||||
extern Gfx D_0D003128[];
|
||||
extern Gfx D_0D003158[];
|
||||
extern Gfx D_0D003188[];
|
||||
extern Gfx D_0D0031B8[];
|
||||
extern Gfx D_0D0031E8[];
|
||||
extern Gfx common_model_banana[];
|
||||
extern Gfx common_model_flat_banana[];
|
||||
|
||||
extern s8 D_800DC628[];
|
||||
extern s8 D_800DC630[];
|
||||
extern s8 D_802B8864[];
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ s32 memoryPadding[2];
|
||||
void *get_next_available_memory_addr(uintptr_t size) {
|
||||
uintptr_t freeSpace = gNextFreeMemoryAddress;
|
||||
size = ALIGN16(size);
|
||||
gNextFreeMemoryAddress += size;
|
||||
gNextFreeMemoryAddress += malloc(freeSpace + size);
|
||||
return (void*) freeSpace;
|
||||
}
|
||||
|
||||
|
||||
@@ -3621,28 +3621,29 @@ u8 gen_random_item(s16 rank, s16 isCpu)
|
||||
if (gModeSelection == VERSUS) {
|
||||
switch (gPlayerCountSelection1) {
|
||||
case TWO_PLAYERS_SELECTED:
|
||||
curve = segmented_to_virtual((void *) common_versus_2_player_item_curve);
|
||||
//curve = segmented_to_virtual((void *) common_versus_2_player_item_curve);
|
||||
break;
|
||||
case THREE_PLAYERS_SELECTED:
|
||||
curve = segmented_to_virtual((void *) common_versus_3_player_item_curve);
|
||||
//curve = segmented_to_virtual((void *) common_versus_3_player_item_curve);
|
||||
break;
|
||||
case FOUR_PLAYERS_SELECTED:
|
||||
curve = segmented_to_virtual((void *) common_versus_4_player_item_curve);
|
||||
//curve = segmented_to_virtual((void *) common_versus_4_player_item_curve);
|
||||
break;
|
||||
}
|
||||
randomItem = *((rank * 100) + curve + sRandomItemIndex);
|
||||
|
||||
} else if (gModeSelection == BATTLE) {
|
||||
curve = segmented_to_virtual((void *) common_battle_item_curve);
|
||||
//curve = segmented_to_virtual((void *) common_battle_item_curve);
|
||||
randomItem = curve[sRandomItemIndex];
|
||||
} else { // GP Mode
|
||||
if (isCpu == 0) {
|
||||
curve = segmented_to_virtual((void *) common_grand_prix_human_item_curve);
|
||||
//curve = segmented_to_virtual((void *) common_grand_prix_human_item_curve);
|
||||
}
|
||||
else {
|
||||
curve = segmented_to_virtual((void *) common_grand_prix_kart_ai_item_curve);
|
||||
//curve = segmented_to_virtual((void *) common_grand_prix_kart_ai_item_curve);
|
||||
}
|
||||
randomItem = *((rank * 100) + curve + sRandomItemIndex);
|
||||
// *((rank * 100) + curve + sRandomItemIndex)
|
||||
randomItem = 1;
|
||||
}
|
||||
return randomItem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user