mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-10 06:16:00 +00:00
improved in the OO fashion: draw, relative_matrix, create_step, and several minor functions are now virtual in hrmap
This commit is contained in:
@@ -60,8 +60,7 @@ void recursive_delete(heptagon *h, int i) {
|
||||
if(h2->alt && h2->alt->alt == h2->alt) {
|
||||
DEBSM(printf("destroying alternate map %p\n", h2->alt);)
|
||||
for(hrmap *& hm: allmaps) {
|
||||
auto hm2 = dynamic_cast<hrmap_alternate*> (hm);
|
||||
if(hm2 && hm2->origin == h2->alt) {
|
||||
if(hm->getOrigin() == h2->alt) {
|
||||
delete hm;
|
||||
hm = allmaps.back();
|
||||
allmaps.pop_back();
|
||||
|
Reference in New Issue
Block a user