Skip to content

Commit

Permalink
SA support, fix rain, fix XP (I shouldn't have done that)
Browse files Browse the repository at this point in the history
  • Loading branch information
erorcun committed Jan 21, 2020
1 parent 7b49c2a commit 9a949d2
Show file tree
Hide file tree
Showing 4 changed files with 306 additions and 82 deletions.
6 changes: 6 additions & 0 deletions LCSSnow/Camera.h
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,12 @@ struct CCameraVC : public CPlaceableVC
};
extern CCameraVC *TheCameraVC;

// We only need that in here
struct CCameraSA : public CPlaceableSA
{
};
extern CCameraSA *TheCameraSA;

struct CCameraIII : public CPlaceable
{
bool m_bAboveGroundTrainNodesLoaded;
Expand Down
15 changes: 15 additions & 0 deletions LCSSnow/GTA.h
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,21 @@ class CMatrix
CVector& GetUp(void) { return *(CVector*)& m_matrix.at; }
};

class CPlaceableSA
{
public:
CVector simplePos;
float angle;
CMatrix *m_matrix;

virtual ~CPlaceableSA(void) { };
CVector& GetPosition(void) { return m_matrix->GetPosition(); }
CVector& GetRight(void) { return m_matrix->GetRight(); }
CVector& GetForward(void) { return m_matrix->GetForward(); }
CVector& GetUp(void) { return m_matrix->GetUp(); }
CMatrix& GetMatrix(void) { return *m_matrix; }
};

// Without vtbl. Used for CCameraVC
class CPlaceableVC
{
Expand Down
Loading

0 comments on commit 9a949d2

Please sign in to comment.