summaryrefslogtreecommitdiffstats
path: root/src/object/motion
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2013-05-01 13:19:10 +0200
committerkrzys-h <krzys_h@interia.pl>2013-05-01 13:19:10 +0200
commit9e1870f6bdb24e278c06929b8bd13225a7fdf8d3 (patch)
treee95cb1832a1584ff2e6c5e02941a2d1f80c83bcd /src/object/motion
parent293376b82d8fa313b17685b73c110a33123f9077 (diff)
downloadcolobot-9e1870f6bdb24e278c06929b8bd13225a7fdf8d3.tar.gz
colobot-9e1870f6bdb24e278c06929b8bd13225a7fdf8d3.tar.bz2
colobot-9e1870f6bdb24e278c06929b8bd13225a7fdf8d3.zip
Removed some warnings
+ fix for previous commit
Diffstat (limited to 'src/object/motion')
-rw-r--r--src/object/motion/motionant.cpp2
-rw-r--r--src/object/motion/motionbee.cpp2
-rw-r--r--src/object/motion/motionhuman.cpp2
-rw-r--r--src/object/motion/motionspider.cpp2
-rw-r--r--src/object/motion/motionvehicle.cpp2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/object/motion/motionant.cpp b/src/object/motion/motionant.cpp
index 07e743f..3eabc0e 100644
--- a/src/object/motion/motionant.cpp
+++ b/src/object/motion/motionant.cpp
@@ -425,7 +425,7 @@ bool CMotionAnt::EventFrame(const Event &event)
{
Math::Vector dir, pos, speed;
Math::Point dim;
- float s, a, prog, time;
+ float s, a, prog = 0.0f, time;
float tSt[9], tNd[9];
int i, ii, st, nd, action;
bool bStop;
diff --git a/src/object/motion/motionbee.cpp b/src/object/motion/motionbee.cpp
index e4fdd49..a0f4734 100644
--- a/src/object/motion/motionbee.cpp
+++ b/src/object/motion/motionbee.cpp
@@ -406,7 +406,7 @@ bool CMotionBee::EventProcess(const Event &event)
bool CMotionBee::EventFrame(const Event &event)
{
Math::Vector dir;
- float s, a, prog;
+ float s, a, prog = 0.0f;
int action, i, st, nd;
bool bStop;
diff --git a/src/object/motion/motionhuman.cpp b/src/object/motion/motionhuman.cpp
index 76ff353..c469a7e 100644
--- a/src/object/motion/motionhuman.cpp
+++ b/src/object/motion/motionhuman.cpp
@@ -677,7 +677,7 @@ bool CMotionHuman::EventFrame(const Event &event)
float s, a, prog, rTime[2], lTime[2], time, rot, hr, hl;
float al, ar, af;
float tSt[9], tNd[9];
- float aa, bb, shield, deadFactor, level;
+ float aa, bb, shield, deadFactor = 0.0f, level;
int i, ii, st, nd, action, legAction, armAction;
bool bOnBoard, bSwim;
diff --git a/src/object/motion/motionspider.cpp b/src/object/motion/motionspider.cpp
index f76b65b..a9a9b9b 100644
--- a/src/object/motion/motionspider.cpp
+++ b/src/object/motion/motionspider.cpp
@@ -363,7 +363,7 @@ bool CMotionSpider::EventFrame(const Event &event)
{
Math::Vector dir, pos, speed;
Math::Point dim;
- float s, a, prog, time;
+ float s, a, prog = 0.0f, time;
float tSt[12], tNd[12];
int i, ii, st, nd, action;
bool bStop;
diff --git a/src/object/motion/motionvehicle.cpp b/src/object/motion/motionvehicle.cpp
index d65809e..966fe75 100644
--- a/src/object/motion/motionvehicle.cpp
+++ b/src/object/motion/motionvehicle.cpp
@@ -1650,7 +1650,7 @@ bool CMotionVehicle::EventFrameFly(const Event &event)
bool CMotionVehicle::EventFrameInsect(const Event &event)
{
Math::Vector dir;
- float s, a, prog, time;
+ float s, a, prog = 0.0f, time;
int i, st, nd, action;
bool bStop, bOnBoard;