Decompile setupCreateDoor

This commit is contained in:
Ryan Dwyer 2022-08-13 19:57:56 +10:00
parent 55d9c7854f
commit 81da795dac
2 changed files with 153 additions and 1391 deletions

View File

@ -530,53 +530,3 @@ void objectiveCheckHolograph(f32 maxdist)
criteria = criteria->next;
}
}
// Too much stack usage and unknown functions to decompile this accurately
// at the moment.
//void objectiveCheckHolograph(s32 arg0)
//{
// struct criteria_holograph *criteria = g_HolographCriterias;
//
// while (criteria) {
// if (g_Vars.stagenum == STAGE_CITRAINING) {
// criteria->status = OBJECTIVE_INCOMPLETE;
// }
//
// if (criteria->status == OBJECTIVE_INCOMPLETE) {
// struct defaultobj *obj = objFindByTagId(criteria->obj);
//
// if (obj && obj->prop && obj->prop->flags & 2 && obj->prop->z > 0 && func0f0869a8(obj)) {
// f32 fVar11 = arg0;
// s32 a[2];
// s32 b[2];
// s32 c[2];
//
// if (fVar11 != 0.00000000) {
// float xdiff = obj->prop->pos.x - g_Vars.currentplayer->cam_pos.x;
// float zdiff = obj->prop->pos.z - g_Vars.currentplayer->cam_pos.z;
// pass = xdiff * xdiff + zdiff * zdiff < fVar11 * fVar11;
// } else {
// pass = fVar11 > -1;
// }
//
// if (pass && func0f0899dc(obj->prop, a, b, c)) {
// func0f06803c(a, b, c, &fStack56);
//
// if (camGetScreenLeft() < fStack56 && fStack56 < camGetScreenWidth() + camGetScreenLeft() &&
// camGetScreenLeft() < fStack64 && fStack64 < camGetScreenWidth() + camGetScreenLeft() &&
// camGetScreenTop() < fStack52 && fStack52 < camGetScreenHeight() + camGetScreenTop() &&
// camGetScreenTop() < fStack60 && fStack60 < camGetScreenHeight() + camGetScreenTop()) {
// criteria->status = OBJECTIVE_COMPLETE;
//
// if (g_Vars.stagenum == STAGE_CITRAINING) {
// struct trainingdata *data = dtGetData();
// data->holographedpc = true;
// }
// }
// }
// }
// }
//
// criteria = criteria->next;
// }
//}

File diff suppressed because it is too large Load Diff