Commit 18177b4
authored
_sweep_ring used a single gradient array that included target_elev for
both the visibility test and the horizon update. The horizon profile
should only reflect raw terrain gradients — target_elev is the height
offset of the thing you're looking for, not extra height on every cell
that might block your view.
Split the gradient into two arrays: gradients (with target_elev, for
visibility) and terrain_gradients (without, for horizon update).
1 parent 4c0cce3 commit 18177b4
2 files changed
+63
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1858 | 1858 | | |
1859 | 1859 | | |
1860 | 1860 | | |
1861 | | - | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
1862 | 1865 | | |
| 1866 | + | |
1863 | 1867 | | |
1864 | 1868 | | |
1865 | 1869 | | |
| |||
1887 | 1891 | | |
1888 | 1892 | | |
1889 | 1893 | | |
| 1894 | + | |
1890 | 1895 | | |
1891 | 1896 | | |
1892 | 1897 | | |
| |||
1913 | 1918 | | |
1914 | 1919 | | |
1915 | 1920 | | |
1916 | | - | |
| 1921 | + | |
1917 | 1922 | | |
1918 | 1923 | | |
1919 | 1924 | | |
1920 | 1925 | | |
1921 | 1926 | | |
1922 | | - | |
| 1927 | + | |
1923 | 1928 | | |
1924 | 1929 | | |
1925 | 1930 | | |
| |||
0 commit comments