portals
This commit is contained in:
@@ -119,6 +119,11 @@ impl Board {
|
||||
return glyph
|
||||
}
|
||||
|
||||
// Portal: passable and non-opaque, but visible above the floor.
|
||||
if self.portals.iter().any(|p| p.x == x && p.y == y) {
|
||||
return PortalDef::default_glyph();
|
||||
}
|
||||
|
||||
self.floor[y * self.width + x]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user