Fix the insert cicle wall-points bug reported by Norvak.

git-svn-id: https://svn.eduke32.com/eduke32@2279 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-01-24 18:07:36 +00:00
parent 5f12ab7f53
commit f96cc343a2

View file

@ -6207,11 +6207,7 @@ end_join_sectors:
inpclamp(&day, -editorgridextent, editorgridextent);
if (bad > 0 && goodtogo)
{
insertpoint(circlewall,dax,day,NULL);
if (wall[circlewall].nextwall >= 0 && wall[circlewall].nextwall < circlewall)
circlewall++;
}
insertpoint(circlewall, dax,day, &circlewall);
dax = mulscale14(dax-pos.x,zoom);
day = mulscale14(day-pos.y,zoom);