mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-13 13:16:23 -04:00
d_s_room / d_s_name / d_a_title debug work (#3123)
* d_s_room / d_s_name debug work * camera_class rtti fix * d_a_title debug / handle shield rel changes * fix shield build * fix regressions
This commit is contained in:
+10
-10
@@ -142,15 +142,15 @@ static int daVrbox2_Draw(vrbox2_class* i_this) {
|
||||
#if !DEBUG
|
||||
cXyz sp8;
|
||||
if (strcmp(dComIfGp_getStartStageName(), "F_SP102") == 0) {
|
||||
dKyr_get_vectle_calc(&camera_p->lookat.eye, &g_env_light.sun_pos, &sp8);
|
||||
sp14.x = camera_p->lookat.eye.x + (8000.0f * sp8.x);
|
||||
sp14.y = camera_p->lookat.eye.y + (8000.0f * sp8.y);
|
||||
sp14.z = camera_p->lookat.eye.z + (8000.0f * sp8.z);
|
||||
dKyr_get_vectle_calc(&camera_p->view.lookat.eye, &g_env_light.sun_pos, &sp8);
|
||||
sp14.x = camera_p->view.lookat.eye.x + (8000.0f * sp8.x);
|
||||
sp14.y = camera_p->view.lookat.eye.y + (8000.0f * sp8.y);
|
||||
sp14.z = camera_p->view.lookat.eye.z + (8000.0f * sp8.z);
|
||||
}
|
||||
#endif
|
||||
|
||||
temp_r19 = cLib_targetAngleX(&camera_p->lookat.eye, &sp14);
|
||||
temp_r18 = cLib_targetAngleY(&camera_p->lookat.eye, &sp14);
|
||||
temp_r19 = cLib_targetAngleX(&camera_p->view.lookat.eye, &sp14);
|
||||
temp_r18 = cLib_targetAngleY(&camera_p->view.lookat.eye, &sp14);
|
||||
mDoMtx_stack_c::transS(sp14.x, sp14.y, sp14.z);
|
||||
mDoMtx_stack_c::YrotM((s16)temp_r18);
|
||||
mDoMtx_stack_c::XrotM(0x7FFF + -temp_r19);
|
||||
@@ -185,8 +185,8 @@ static int daVrbox2_Draw(vrbox2_class* i_this) {
|
||||
sp14 = sun_p->mPos[0];
|
||||
sp14.y = 300.0f + -(sp14.y * 0.85f);
|
||||
|
||||
temp_r19 = cLib_targetAngleX(&camera_p->lookat.eye, &sp14);
|
||||
temp_r18 = cLib_targetAngleY(&camera_p->lookat.eye, &sp14);
|
||||
temp_r19 = cLib_targetAngleX(&camera_p->view.lookat.eye, &sp14);
|
||||
temp_r18 = cLib_targetAngleY(&camera_p->view.lookat.eye, &sp14);
|
||||
mDoMtx_stack_c::transS(sp14.x, sp14.y, sp14.z);
|
||||
mDoMtx_stack_c::YrotM((s16)temp_r18);
|
||||
mDoMtx_stack_c::XrotM(0x7FFF + -temp_r19);
|
||||
@@ -246,8 +246,8 @@ static int daVrbox2_color_set(vrbox2_class* i_this) {
|
||||
|
||||
sp10 = dStage_stagInfo_GetSTType(dComIfGp_getStage()->getStagInfo());
|
||||
|
||||
cam_eye = camera_p->lookat.eye;
|
||||
cam_center = camera_p->lookat.center;
|
||||
cam_eye = camera_p->view.lookat.eye;
|
||||
cam_center = camera_p->view.lookat.center;
|
||||
cam_eye.y = 0.0f;
|
||||
cam_center.y = 0.0f;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user