mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-08 01:33:02 +00:00
rulegen:: fixed get_aid
This commit is contained in:
1
reg3.cpp
1
reg3.cpp
@@ -1735,6 +1735,7 @@ EX namespace reg3 {
|
|||||||
EX int get_aid(cell *c) {
|
EX int get_aid(cell *c) {
|
||||||
auto m = dynamic_cast<hrmap_h3*> (currentmap);
|
auto m = dynamic_cast<hrmap_h3*> (currentmap);
|
||||||
if(!m) throw hr_exception("get_aid incorrect");
|
if(!m) throw hr_exception("get_aid incorrect");
|
||||||
|
if(PURE) return c->master->fieldval;
|
||||||
return m->cell_id[c];
|
return m->cell_id[c];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user