# HG changeset patch # User John "Elwin" Edwards # Date 1469061881 14400 # Node ID d08f19d529ebce06382fbc101973ffedce559bc7 # Parent 9e35b2f9c2ea773b48b0a2f199931135319d3acd Rogue V5: fix save/restore making levitation, hallucination permanent. Like an earlier bug with detecting monsters, the fuses responsible for ending levitation and hallucination were not recognized by rs_write_daemons(). They got left out of the savefile, so after restoring, the effect never wore off. I think this is the first bugfix I've ever made that reduced the game's difficulty. diff -r 9e35b2f9c2ea -r d08f19d529eb rogue5/state.c --- a/rogue5/state.c Wed Jun 01 20:16:23 2016 -0400 +++ b/rogue5/state.c Wed Jul 20 20:44:41 2016 -0400 @@ -600,6 +600,12 @@ func = 9; else if (dlist[i].d_func == turn_see_off) func = 10; + else if (dlist[i].d_func == land) + func = 11; + else if (dlist[i].d_func == come_down) + func = 12; + else if (dlist[i].d_func == visuals) + func = 13; else if (dlist[i].d_func == NULL) func = 0; else @@ -661,6 +667,12 @@ break; case 10: dlist[i].d_func = turn_see_off; break; + case 11: dlist[i].d_func = land; + break; + case 12: dlist[i].d_func = come_down; + break; + case 13: dlist[i].d_func = visuals; + break; default:dlist[i].d_func = NULL; break; }