mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-17 18:54:48 +00:00
added is_boundary for &out_of_bounds just in case
This commit is contained in:
parent
70702a8cd9
commit
3cabddeb65
1
cell.cpp
1
cell.cpp
@ -1423,6 +1423,7 @@ EX int valence() {
|
|||||||
|
|
||||||
/** portalspaces are not defined outside of a boundary */
|
/** portalspaces are not defined outside of a boundary */
|
||||||
EX bool is_boundary(cell *c) {
|
EX bool is_boundary(cell *c) {
|
||||||
|
if(c == &out_of_bounds) return true;
|
||||||
return (cgflags & qPORTALSPACE) && isWall(c->wall);
|
return (cgflags & qPORTALSPACE) && isWall(c->wall);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user