Skip to content

Commit

Permalink
Fixed build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jarmonik committed Feb 18, 2024
1 parent d1c1566 commit 6c25b59
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
13 changes: 11 additions & 2 deletions Src/Orbiter/VCockpit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,17 @@ void VirtualCockpit::GetClickZones(std::list<VCClickZone>* p_List)
VCClickZone A;
A.id = a->id;
A.mode = a->cmode;
if (a->cmode == Area::ClickMode::CMODE_QUAD) for (int k = 0; k < 4; k++) A.pt[k] = _V(a->p[k]);
if (a->cmode == Area::ClickMode::CMODE_SPHERICAL) { A.cnt = _V(a->cnt); A.rad = a->rad; }
if (a->cmode == Area::ClickMode::CMODE_QUAD) for (int k = 0; k < 4; k++) {
A.pt[k].x = a->p[k].x;
A.pt[k].y = a->p[k].y;
A.pt[k].z = a->p[k].z;
}
if (a->cmode == Area::ClickMode::CMODE_SPHERICAL) {
A.cnt.x = a->cnt.x;
A.cnt.y = a->cnt.y;
A.cnt.z = a->cnt.z;
A.rad = a->rad;
}
p_List->push_back(A);
}
}
Expand Down
7 changes: 0 additions & 7 deletions Src/Orbiter/Vecmat.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <math.h>
#include <memory.h>
#include <ostream>
#include <OrbiterAPI.h>

// =======================================================================
// Some useful constants
Expand Down Expand Up @@ -171,12 +170,6 @@ class Vector {
};


inline VECTOR3 _V(const Vector& v)
{
return { v.x, v.y, v.z };
}


// =======================================================================
// class Matrix

Expand Down

0 comments on commit 6c25b59

Please sign in to comment.