mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-10-01 07:20:41 +00:00
rulegen:: fixed get_aid
This commit is contained in:
parent
8fdbe7714a
commit
4bbf4a1a88
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];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user