mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-09 03:59:34 -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:
@@ -1003,7 +1003,7 @@ static int daE_SH_Execute(e_sh_class* i_this) {
|
||||
|
||||
MTXCopy(model->getAnmMtx(13), *calc_mtx);
|
||||
|
||||
camera_class* camera = dComIfGp_getCamera(0);
|
||||
camera_process_class* camera = dComIfGp_getCamera(0);
|
||||
|
||||
s16 rotX;
|
||||
s16 rotY;
|
||||
@@ -1014,7 +1014,7 @@ static int daE_SH_Execute(e_sh_class* i_this) {
|
||||
if (i == 0) {
|
||||
unkXyz1.set(15.0f + TREG_F(0), 3.5f + TREG_F(1), TREG_F(2));
|
||||
MtxPosition(&unkXyz1, &unkXyz2);
|
||||
unkXyz1 = camera->lookat.eye - unkXyz2;
|
||||
unkXyz1 = camera->view.lookat.eye - unkXyz2;
|
||||
rotY = cM_atan2s(unkXyz1.x, unkXyz1.z);
|
||||
rotX = -cM_atan2s(unkXyz1.y, JMAFastSqrt(unkXyz1.x * unkXyz1.x + unkXyz1.z * unkXyz1.z));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user