mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-26 00:07:10 +00:00
Merge pull request #530 from josephcsible/strandedshallow
Make the tile under stranded boats look like shallow water where appropriate
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
@@ -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};
|
||||
|
||||
Reference in new issue
Block a user