mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-12-17 03:28:05 +00:00
Fixed mapediting floorshapes. Also works nicely for all geometries now. Enum used for shapegroups.
This commit is contained in:
10
pattern2.cpp
10
pattern2.cpp
@@ -1882,6 +1882,16 @@ namespace patterns {
|
||||
pushScreen(showChangeablePatterns);
|
||||
computeCgroup();
|
||||
}
|
||||
|
||||
int subcode(cell *c, const patterninfo& si) {
|
||||
if(irr::on)
|
||||
return irr::cellindex[c] << 8;
|
||||
else if(archimedean)
|
||||
return arcm::id_of(c->master) << 8;
|
||||
else if(!gp::on) return 0;
|
||||
else if(c == c->master->c7) return (fixdir(si.dir, c) << 8);
|
||||
else return (get_code(gp::get_local_info(c)) << 16) | (fixdir(si.dir, c) << 8);
|
||||
}
|
||||
}
|
||||
|
||||
bool is_master(cell *c) {
|
||||
|
||||
Reference in New Issue
Block a user