Code cleanup
This commit is contained in:
1 parent
8ad773a7eb
commit
9b59eb0256
163 files changed
+1806
-2251
No files matched your search
+1
-42
@@ -162,7 +162,6 @@ void print_debug_top_down_normal(const char *str, s32 number) {
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef VERSION_EU
|
||||
void print_mapinfo(void) {
|
||||
struct Surface *pfloor;
|
||||
f32 bgY;
|
||||
@@ -180,10 +179,7 @@ void print_mapinfo(void) {
|
||||
print_debug_top_down_normal("mapinfo", 0);
|
||||
print_debug_top_down_mapinfo("area %x", area);
|
||||
print_debug_top_down_mapinfo("wx %d", gCurrentObject->oPosX);
|
||||
//! Fat finger: programmer hit tab instead of space. Japanese
|
||||
// thumb shift keyboards had the tab key next to the spacebar,
|
||||
// so this was likely the reason.
|
||||
print_debug_top_down_mapinfo("wy\t %d", gCurrentObject->oPosY);
|
||||
print_debug_top_down_mapinfo("wy %d", gCurrentObject->oPosY);
|
||||
print_debug_top_down_mapinfo("wz %d", gCurrentObject->oPosZ);
|
||||
print_debug_top_down_mapinfo("bgY %d", bgY);
|
||||
print_debug_top_down_mapinfo("angY %d", angY);
|
||||
@@ -199,41 +195,6 @@ void print_mapinfo(void) {
|
||||
print_debug_top_down_mapinfo("water %d", water);
|
||||
}
|
||||
}
|
||||
#else
|
||||
void print_mapinfo(void) {
|
||||
// EU mostly stubbed this function out.
|
||||
struct Surface *pfloor;
|
||||
UNUSED f32 bgY;
|
||||
UNUSED f32 water;
|
||||
UNUSED s32 area;
|
||||
// s32 angY;
|
||||
//
|
||||
// angY = gCurrentObject->oMoveAngleYaw / 182.044000;
|
||||
// area = ((s32)gCurrentObject->oPosX + 0x2000) / 1024
|
||||
// + ((s32)gCurrentObject->oPosZ + 0x2000) / 1024 * 16;
|
||||
//
|
||||
bgY = find_floor(gCurrentObject->oPosX, gCurrentObject->oPosY, gCurrentObject->oPosZ, &pfloor);
|
||||
water = find_water_level(gCurrentObject->oPosX, gCurrentObject->oPosZ);
|
||||
|
||||
print_debug_top_down_normal("mapinfo", 0);
|
||||
// print_debug_top_down_mapinfo("area %x", area);
|
||||
// print_debug_top_down_mapinfo("wx %d", gCurrentObject->oPosX);
|
||||
// print_debug_top_down_mapinfo("wy\t %d", gCurrentObject->oPosY);
|
||||
// print_debug_top_down_mapinfo("wz %d", gCurrentObject->oPosZ);
|
||||
// print_debug_top_down_mapinfo("bgY %d", bgY);
|
||||
// print_debug_top_down_mapinfo("angY %d", angY);
|
||||
//
|
||||
// if(pfloor) // not null
|
||||
//{
|
||||
// print_debug_top_down_mapinfo("bgcode %d", pfloor->type);
|
||||
// print_debug_top_down_mapinfo("bgstatus %d", pfloor->flags);
|
||||
// print_debug_top_down_mapinfo("bgarea %d", pfloor->room);
|
||||
//}
|
||||
//
|
||||
// if(gCurrentObject->oPosY < water)
|
||||
// print_debug_top_down_mapinfo("water %d", water);
|
||||
}
|
||||
#endif
|
||||
|
||||
void print_checkinfo(void) {
|
||||
print_debug_top_down_normal("checkinfo", 0);
|
||||
@@ -506,8 +467,6 @@ void try_print_debug_mario_level_info(void) {
|
||||
* [5][7] (b7 in the string array) to 1 to enable debug spawn.
|
||||
*/
|
||||
void try_do_mario_debug_object_spawn(void) {
|
||||
UNUSED s32 unused;
|
||||
|
||||
if (sDebugPage == DEBUG_PAGE_STAGEINFO && gDebugInfo[DEBUG_PAGE_ENEMYINFO][7] == 1) {
|
||||
if (gPlayer1Controller->buttonPressed & R_JPAD) {
|
||||
spawn_object_relative(0, 0, 100, 200, gCurrentObject, MODEL_KOOPA_SHELL, bhvKoopaShell);
|
||||
|
||||
Reference in new issue
Block a user