MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / EnsureRay

Function EnsureRay

general.cpp:671–691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

669// indicating whether each ray applies to a sign, and its proportion.
670
671void EnsureRay()
672{
673 int i, j, c, n;
674
675 for (i = 1; i <= cSign; i++) {
676 for (j = 1; j <= cRay; j++)
677 rgSignRay2[i][j] = 0;
678 c = 0;
679 n = rgSignRay[i];
680 while (n) {
681 j = n % 10;
682 n /= 10;
683 if (!FBetween(j, 1, cRay))
684 continue;
685 rgSignRay2[i][j] = 1;
686 c++;
687 }
688 for (j = 1; j <= cRay; j++)
689 rgSignRay2[i][j] *= 420 / c;
690 }
691}
692
693
694// Initialize table of star brightnesses. Usually only called once before

Callers 6

NProcessSwitchesRareFunction · 0.85
PrintRayFunction · 0.85
InterpretEsotericFunction · 0.85
DlgDisplayFunction · 0.85
XChartEsotericFunction · 0.85
ChartEsotericFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected