mirror of
https://github.com/glest/glest-source.git
synced 2025-08-28 18:29:48 +02:00
init variables
This commit is contained in:
@@ -423,6 +423,11 @@ Unit::Unit(int id, UnitPathInterface *unitpath, const Vec2i &pos,
|
||||
causeOfDeath = ucodNone;
|
||||
pathfindFailedConsecutiveFrameCount = 0;
|
||||
|
||||
lastSynchDataString = "";
|
||||
lastFile = "";
|
||||
lastLine = 0;
|
||||
lastSource = "";
|
||||
|
||||
targetRotationZ=.0f;
|
||||
targetRotationX=.0f;
|
||||
rotationZ=.0f;
|
||||
|
@@ -97,6 +97,8 @@ public:
|
||||
|
||||
public:
|
||||
Vec2(){
|
||||
x = 0;
|
||||
y = 0;
|
||||
};
|
||||
|
||||
explicit Vec2(T *p){
|
||||
@@ -330,6 +332,9 @@ public:
|
||||
|
||||
public:
|
||||
Vec3() {
|
||||
x = 0;
|
||||
y = 0;
|
||||
z = 0;
|
||||
};
|
||||
|
||||
explicit Vec3(T *p){
|
||||
@@ -584,6 +589,10 @@ public:
|
||||
T w;
|
||||
public:
|
||||
Vec4() {
|
||||
x = 0;
|
||||
y = 0;
|
||||
z = 0;
|
||||
w = 0;
|
||||
};
|
||||
|
||||
explicit Vec4(const T *p){
|
||||
|
Reference in New Issue
Block a user