Merge pull request #530 from josephcsible/strandedshallow

Make the tile under stranded boats look like shallow water where appropriate
This commit is contained in:
Zeno Rogue authored and GitHub committed 2026-11-15 22:18:30 +01:00
commit a7f855692b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -186,7 +186,7 @@ void celldrawer::setcolors() {
fcol = wcol;
}
else if(c->wall == waShallow)
else if(c->wall == waShallow || (c->wall == waStrandedBoat && c->land == laOcean && c->landparam >= tidalphase2))
fcol = 0x40C0C0;
// floor colors for all the lands
+1 -1
View File
@@ -351,7 +351,7 @@ EX spatial_info get_spatial_info(cell *c) {
return spatial_info{SIDE::WATERLEVEL, SIDE::DEEP, F(DEEP), 0};
if(c->wall == waReptile)
return spatial_info{SIDE::FLOOR, SIDE::FLOOR, F(FLOOR) | F(DEEP), 0};
if(c->wall == waShallow)
if(c->wall == waShallow || (c->wall == waStrandedBoat && c->land == laOcean && c->landparam >= tidalphase2))
return spatial_info{SIDE::WATERLEVEL, SIDE::SHALLOW, F(SHALLOW) | F(DEEP), 0};
if(isWateryOrBoat(c) || isChasmy(c))
return spatial_info{SIDE::WATERLEVEL, SIDE::DEEP, F(DEEP), 0};