init variables
This commit is contained in:
parent
67bf5ebc1b
commit
17da18978a
|
@ -423,6 +423,11 @@ Unit::Unit(int id, UnitPathInterface *unitpath, const Vec2i &pos,
|
||||||
causeOfDeath = ucodNone;
|
causeOfDeath = ucodNone;
|
||||||
pathfindFailedConsecutiveFrameCount = 0;
|
pathfindFailedConsecutiveFrameCount = 0;
|
||||||
|
|
||||||
|
lastSynchDataString = "";
|
||||||
|
lastFile = "";
|
||||||
|
lastLine = 0;
|
||||||
|
lastSource = "";
|
||||||
|
|
||||||
targetRotationZ=.0f;
|
targetRotationZ=.0f;
|
||||||
targetRotationX=.0f;
|
targetRotationX=.0f;
|
||||||
rotationZ=.0f;
|
rotationZ=.0f;
|
||||||
|
|
|
@ -97,6 +97,8 @@ public:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Vec2(){
|
Vec2(){
|
||||||
|
x = 0;
|
||||||
|
y = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
explicit Vec2(T *p){
|
explicit Vec2(T *p){
|
||||||
|
@ -322,14 +324,17 @@ typedef Vec2<double> Vec2d;
|
||||||
// =====================================================
|
// =====================================================
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
class Vec3{
|
class Vec3 {
|
||||||
public:
|
public:
|
||||||
T x;
|
T x;
|
||||||
T y;
|
T y;
|
||||||
T z;
|
T z;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Vec3(){
|
Vec3() {
|
||||||
|
x = 0;
|
||||||
|
y = 0;
|
||||||
|
z = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
explicit Vec3(T *p){
|
explicit Vec3(T *p){
|
||||||
|
@ -576,7 +581,7 @@ typedef Vec3<double> Vec3d;
|
||||||
// =====================================================
|
// =====================================================
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
class Vec4{
|
class Vec4 {
|
||||||
public:
|
public:
|
||||||
T x;
|
T x;
|
||||||
T y;
|
T y;
|
||||||
|
@ -584,6 +589,10 @@ public:
|
||||||
T w;
|
T w;
|
||||||
public:
|
public:
|
||||||
Vec4() {
|
Vec4() {
|
||||||
|
x = 0;
|
||||||
|
y = 0;
|
||||||
|
z = 0;
|
||||||
|
w = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
explicit Vec4(const T *p){
|
explicit Vec4(const T *p){
|
||||||
|
|
Loading…
Reference in New Issue