remove angles from the submodel instance

This commit is contained in:
Goober5000 committed 2021-01-13 14:01:34 -05:00
1 parent 020f14fb51
commit 554bbb884d
6 files changed
+49 -37

No files matched your search

-2
View File
@@ -119,7 +119,6 @@ ADE_VIRTVAR(Orientation, l_Subsystem, "orientation", "Orientation of subobject o
{
smi->canonical_prev_orient = smi->canonical_orient;
smi->canonical_orient = *mh->GetMatrix();
smi->canonical_angs = *mh->GetAngles();
}
return ade_set_args(L, "o", l_Matrix.Set(matrix_h(&smi->canonical_orient)));
@@ -143,7 +142,6 @@ ADE_VIRTVAR(GunOrientation, l_Subsystem, "orientation", "Orientation of turret g
{
smi->canonical_prev_orient = smi->canonical_orient;
smi->canonical_orient = *mh->GetMatrix();
smi->canonical_angs = *mh->GetAngles();
}
return ade_set_args(L, "o", l_Matrix.Set(matrix_h(&smi->canonical_orient)));