summaryrefslogtreecommitdiffstats
path: root/src/object/task/taskgungoal.h
diff options
context:
space:
mode:
authorOleg Kosmakov <kosmakoff@gmail.com>2014-03-21 13:08:36 +0200
committerOleg Kosmakov <kosmakoff@gmail.com>2014-03-21 13:08:36 +0200
commit7485ed790caeaa76efab0e9df48224cf1943ec27 (patch)
tree79fa3c6532bdcfe67967687c6438a60d37ce6dc9 /src/object/task/taskgungoal.h
parent2cf84ad2148c8f88a1153771b357cc8b3208e38a (diff)
downloadcolobot-7485ed790caeaa76efab0e9df48224cf1943ec27.tar.gz
colobot-7485ed790caeaa76efab0e9df48224cf1943ec27.tar.bz2
colobot-7485ed790caeaa76efab0e9df48224cf1943ec27.zip
Fixes #295
When cannon cannot turn at specified angle, it will still reach the edge angle, but return the error code
Diffstat (limited to 'src/object/task/taskgungoal.h')
-rw-r--r--src/object/task/taskgungoal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/object/task/taskgungoal.h b/src/object/task/taskgungoal.h
index c6f010b..9fc509d 100644
--- a/src/object/task/taskgungoal.h
+++ b/src/object/task/taskgungoal.h
@@ -44,5 +44,7 @@ protected:
float m_finalDirV; // direction to reach
float m_initialDirH; // initial direction
float m_finalDirH; // direction to reach
+
+ bool m_aimImpossible; // set to true if impossible aim was set
};