fake:: moved reinit to inside the class

This commit is contained in:
Zeno Rogue
2026-04-16 19:07:39 +02:00
parent 76ad8698e9
commit 72c89959e5
+2 -2
View File
@@ -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;