Nightly update (ISO SHA-1 e016a09)

This commit is contained in:
TempleOS-bot committed 2017-01-31 14:27:26 -05:00
1 parent 2e67137597
commit b97fa7c00e
7 files changed
+22 -7

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ $ID,-2$$TR,"Titanium"$
$ID,2$I64 best_score=16469;
$ID,-2$$TR,"TOSRegen"$
$ID,2$progress1_tf=0.000;progress2_tf=0.000;
progress3_tf=0.000;progress4_tf=202.157;
progress3_tf=0.000;progress4_tf=204.328;
$ID,-2$$ID,-2$$TR,"Once"$
$ID,2$$TR,"Adam"$
$ID,2$$ID,-2$$TR,"User"$
+18 -2
View File
@@ -155,7 +155,7 @@ U0 FindNormal(Photon *tmpp)
D3Div(&tmpp->p,&p,bmp_scale);
//Draw an arc one direction, finding point of contact.
for (step=1.0;step>=0.01;step/=4)
for (step=1.0;step>=0.01;step/=4) {
for (è=0;è<=ã/4;è+=step*ã/bmp_norm_radius) {
x=p.x+bmp_norm_radius*Cos(é+ã-ã/4-è);
y=p.y+bmp_norm_radius*Sin(é+ã-ã/4-è);
@@ -168,6 +168,14 @@ U0 FindNormal(Photon *tmpp)
if (c!=BLACK)
goto fn_p1;
}
for (;è<=3*ã/4;è+=step*ã/bmp_norm_radius) {
x=p.x+bmp_norm_radius*Cos(é+ã-ã/4-è);
y=p.y+bmp_norm_radius*Sin(é+ã-ã/4-è);
c=BmpPeek(x,y);
if (c!=BLACK)
goto fn_p1;
}
}
fn_p1:
if (c==WHITE)
D3Equ(&p1,x,y);
@@ -175,7 +183,7 @@ fn_p1:
D3Copy(&p1,&tmpp->p);
//Draw an arc other direction, finding point of contact.
for (step=1.0;step>=0.01;step/=4)
for (step=1.0;step>=0.01;step/=4) {
for (è=0;è<=ã/4;è+=step*ã/bmp_norm_radius) {
x=p.x+bmp_norm_radius*Cos(é+ã+ã/4+è);
y=p.y+bmp_norm_radius*Sin(é+ã+ã/4+è);
@@ -188,6 +196,14 @@ fn_p1:
if (c!=BLACK)
goto fn_p2;
}
for (;è<=3*ã/4;è+=step*ã/bmp_norm_radius) {
x=p.x+bmp_norm_radius*Cos(é+ã+ã/4+è);
y=p.y+bmp_norm_radius*Sin(é+ã+ã/4+è);
c=BmpPeek(x,y);
if (c!=BLACK)
goto fn_p2;
}
}
fn_p2:
if (c==WHITE)
D3Equ(&p2,x,y);