lineofsight:: first commit

This commit is contained in:
Zeno Rogue
2026-07-31 11:26:30 +02:00
parent 1880494dd2
commit 9dbbd113a7
12 changed files with 153 additions and 21 deletions
+5 -1
View File
@@ -500,7 +500,11 @@ EX color_t stdgridcolor = 0x202020FF;
EX int gridcolor(cell *c1, cell *c2) {
if(cmode & sm::DRAW && !mapeditor::drawing_tool) return Dark(forecolor);
if(!c2)
return 0x202020 >> darken;
return Dark(0x202020);
if(!in_line_of_sight(c1) || !in_line_of_sight(c2))
return Dark(0x808080);
int rd1 = rosedist(c1), rd2 = rosedist(c2);
if(rd1 != rd2) {
int r = rd1+rd2;