diff --git a/rogueviz/ru/man.cpp b/rogueviz/ru/man.cpp index 1c22cf0c..805a1501 100644 --- a/rogueviz/ru/man.cpp +++ b/rogueviz/ru/man.cpp @@ -23,13 +23,13 @@ void check_fountains() { auto bb = pixel_to_block(m.get_pixel_bbox()); for(int x = bb.minx; x < bb.maxx; x++) for(int y = bb.miny; y < bb.maxy; y++) { eWall b = current_room->at(x, y); - println(hlog, tuple(x, y, int(b))); if(b == wFountain) next_on_fountain = true; } if(next_on_fountain && !on_fountain) { if(extra_life->flags & ACTIVE) { fountain_room = current_room; fountain_where = m.where; + death_revert.clear(); } addMessage("A magic fountain! You feel safe and refill your potions."); regenerate_all(); diff --git a/rogueviz/ru/powers.cpp b/rogueviz/ru/powers.cpp index a4977283..80910de3 100644 --- a/rogueviz/ru/powers.cpp +++ b/rogueviz/ru/powers.cpp @@ -201,9 +201,9 @@ void gen_powers() { else if(!on_fountain) addMessage("For safety, you can only drink " + d.p->get_name() + " at the Magic Fountain."); else { - d.p->flags = ACTIVE; fountain_room = current_room; fountain_where = m.where; addMessage("You drink the " + d.p->get_name() + " and you feel that nothing will stop you now!"); + d.p->flags |= ACTIVE; } } }