From 55373fdd14e70560a5c26b7e07a02f2e55723112 Mon Sep 17 00:00:00 2001 From: gewlitys Date: Thu, 5 Dec 2002 19:43:31 +0000 Subject: [PATCH] > vs. >= bugfix, from PhracturedBlue git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@346 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/planets/plangen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sc2/src/sc2code/planets/plangen.c b/sc2/src/sc2code/planets/plangen.c index 8ea3ef1e8..348c155d3 100644 --- a/sc2/src/sc2code/planets/plangen.c +++ b/sc2/src/sc2code/planets/plangen.c @@ -267,12 +267,12 @@ void create_aa_points(MAP3D_POINT *ppt, double x, double y) // get the integer value of this point ppt->p[0].x=(COORD)(0.5+x); ppt->p[0].y=(COORD)(0.5+y); - if(ppt->p[0].x > TWORADIUS) { + if(ppt->p[0].x >= TWORADIUS) { ppt->p[0].x=TWORADIUS; } else if(ppt->p[0].x != 0) { deltax=x-ppt->p[0].x; } - if(ppt->p[0].y > TWORADIUS) { + if(ppt->p[0].y >= TWORADIUS) { ppt->p[0].y=TWORADIUS; } else if(ppt->p[0].y != 0) { deltay=y-ppt->p[0].y;