mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-08-21 13:58:51 +00:00
fake:: moved reinit to inside the class
This commit is contained in:
@@ -25,8 +25,6 @@ EX namespace fake {
|
||||
|
||||
EX bool in_ext() { return in() || (mhybrid && PIU(in())); }
|
||||
|
||||
EX void reinit() override { pmap->reinit(); }
|
||||
|
||||
/** like in() but takes slided arb into account */
|
||||
EX bool split() { return in() || arb::in_slided(); }
|
||||
|
||||
@@ -71,6 +69,8 @@ EX namespace fake {
|
||||
|
||||
cell* gamestart() override { return in_underlying([this] { return underlying_map->gamestart(); }); }
|
||||
|
||||
void reinit() override { pmap->reinit(); }
|
||||
|
||||
hrmap_fake(hrmap *u) {
|
||||
underlying_map = u;
|
||||
for(hrmap*& m: allmaps) if(m == underlying_map) m = this;
|
||||
|
||||
Reference in New Issue
Block a user