mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-13 20:27:10 +00:00
hybrid:: refactored the common parts of prod and sl2, also used them when applicable
This commit is contained in:
@@ -37,7 +37,7 @@ EX bool hasbardir(cell *c) {
|
||||
}
|
||||
|
||||
EX void preventbarriers(cell *c) {
|
||||
if(prod) c = product::get_where(c).first;
|
||||
if(hybri) c = hybrid::get_where(c).first;
|
||||
if(c && c->bardir == NODIR) c->bardir = NOBARRIERS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user