From f25f8229a0b04ab7385b4bacc0da973b56645629 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Thu, 5 Apr 2012 22:49:31 +0200 Subject: Temporary fix for #17 --- src/autoegg.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/autoegg.cpp') 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 -- cgit v1.2.3-1-g7c22