| 669 | // indicating whether each ray applies to a sign, and its proportion. |
| 670 | |
| 671 | void 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 |
no outgoing calls
no test coverage detected