summaryrefslogtreecommitdiffstats
path: root/src/autoegg.cpp
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-04-07 15:58:46 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-04-07 15:58:46 +0200
commitdcd5bf860944bae72e147bd4a4dafca68fd07bbd (patch)
tree6aaaa56f52154bf83c3a007abcb5c4984f676c9b /src/autoegg.cpp
parentb1bf48e9fdafbd5783099ef1bf7d207f2bdcdba6 (diff)
downloadcolobot-dcd5bf860944bae72e147bd4a4dafca68fd07bbd.tar.gz
colobot-dcd5bf860944bae72e147bd4a4dafca68fd07bbd.tar.bz2
colobot-dcd5bf860944bae72e147bd4a4dafca68fd07bbd.zip
Better fix for #17
Diffstat (limited to 'src/autoegg.cpp')
-rw-r--r--src/autoegg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/autoegg.cpp b/src/autoegg.cpp
index 8846cdb..6e57fcc 100644
--- a/src/autoegg.cpp
+++ b/src/autoegg.cpp
@@ -76,9 +76,9 @@ void CAutoEgg::DeleteObject(BOOL bAll)
alien = SearchAlien();
if ( alien != 0 )
{
- // Temporary fix - I'm not sure if this is the intended meaning
+ // Probably the intended action
// 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 ) )
+ if ( alien->RetZoomY(0) == 1.0f )
{
alien->SetLock(FALSE);
alien->SetActivity(TRUE); // the insect is active