d_kankyo debug work (#2918)

* Global: Define DEBUG as 0 if not already defined

* Clean up DEBUG-guarded code

* d_kankyo debug almost matching
This commit is contained in:
Max Roncace
2025-12-06 16:39:30 -05:00
committed by GitHub
parent a30e617e5a
commit 136f6b3f40
7 changed files with 3635 additions and 493 deletions
+4 -4
View File
@@ -556,10 +556,10 @@ void dGrass_packet_c::draw() {
f32 sp58 = 1.0f - temp_f27;
temp_f27 += 0.5f * sp58;
J3DLightInfo& sp40 = sp44->mLights[0].getLightInfo();
sp98.r = sp40.mColor.r * temp_f27;
sp98.g = sp40.mColor.g * temp_f27;
sp98.b = sp40.mColor.b * temp_f27;
J3DLightInfo* sp40 = sp44->mLights[0].getLightInfo();
sp98.r = sp40->mColor.r * temp_f27;
sp98.g = sp40->mColor.g * temp_f27;
sp98.b = sp40->mColor.b * temp_f27;
sp98.a = var_f29;
if (memcmp(dComIfGp_getStartStageName(), "D_MN01", 6) == 0) {
+5 -5
View File
@@ -329,12 +329,11 @@ int dEvent_manager_c::create() {
}
bool dEvent_manager_c::setObjectArchive(char* arcname) {
char* rt = NULL;
void* rt = NULL;
if (arcname != NULL) {
char* res = (char*)dComIfG_getObjectRes(arcname, DataFileName);
rt = res;
int base_status = mEventList[BASE_ACTOR].init(res, -1);
rt = dComIfG_getObjectRes(arcname, DataFileName);
int base_status = mEventList[BASE_ACTOR].init((char*)rt, -1);
#if DEBUG
if (base_status) {
@@ -1382,7 +1381,8 @@ fopAc_ac_c* dEvent_manager_c::specialCast_Shutter(s16 actorName, BOOL param_1) {
shutterActor = fopAcM_Search((fopAcIt_JudgeFunc)findShutterCallBack, &prms);
if (shutterActor != NULL && param_1) {
cXyz goal(shutterActor->home.pos);
s16 angle = prms.actor->home.angle.y + 0x8000;
s16 angle = prms.actor->home.angle.y;
angle = angle + 0x8000;
goal.x += cM_ssin(angle) * 100;
goal.z += cM_scos(angle) * 100;
+3612 -464
View File
File diff suppressed because it is too large Load Diff