Skip to content

Commit

Permalink
Change Vector constructor to use const float[]
Browse files Browse the repository at this point in the history
  • Loading branch information
YaLTeR committed Jan 20, 2020
1 parent 4f88ca6 commit a423768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HLSDK/dlls/vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Vector // same data-layout as engine's vec3_t,
//inline Vector(double X, double Y, double Z) { x = (float)X; y = (float)Y; z = (float)Z; }
//inline Vector(int X, int Y, int Z) { x = (float)X; y = (float)Y; z = (float)Z; }
inline Vector(const Vector& v) { x = v.x; y = v.y; z = v.z; }
inline Vector(float rgfl[3]) { x = rgfl[0]; y = rgfl[1]; z = rgfl[2]; }
inline Vector(const float rgfl[3]) { x = rgfl[0]; y = rgfl[1]; z = rgfl[2]; }
inline Vector& operator=(const Vector& v) { x = v.x; y = v.y; z = v.z; return *this; }

// Operators
Expand Down

0 comments on commit a423768

Please sign in to comment.