summaryrefslogtreecommitdiffstats
path: root/src/autoegg.cpp
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-04-05 22:49:31 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-04-05 22:49:31 +0200
commitf25f8229a0b04ab7385b4bacc0da973b56645629 (patch)
treeef0119ba4a10b4cfac98c8c016894cc50f5644b0 /src/autoegg.cpp
parent99d42707cba68a2abd065f199ca62da5c956d8a1 (diff)
downloadcolobot-f25f8229a0b04ab7385b4bacc0da973b56645629.tar.gz
colobot-f25f8229a0b04ab7385b4bacc0da973b56645629.tar.bz2
colobot-f25f8229a0b04ab7385b4bacc0da973b56645629.zip
Temporary fix for #17
Diffstat (limited to 'src/autoegg.cpp')
-rw-r--r--src/autoegg.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/autoegg.cpp b/src/autoegg.cpp
index 45dadf5..8846cdb 100644
--- a/src/autoegg.cpp
+++ b/src/autoegg.cpp
@@ -76,7 +76,9 @@ void CAutoEgg::DeleteObject(BOOL bAll)
alien = SearchAlien();
if ( alien != 0 )
{
- if ( alien->RetZoom(0) == 1.0f ) // ? RetZoom() returns a vector
+ // Temporary fix - I'm not sure if this is the intended meaning
+ // Original code: ( alien->RetZoom(0) == 1.0f )
+ if ( ( alien->RetZoom(0).x == 1.0f ) && ( alien->RetZoom(0).y == 0.0f ) && ( alien->RetZoom(0).z == 0.0f ) )
{
alien->SetLock(FALSE);
alien->SetActivity(TRUE); // the insect is active