diff rogue5/state.c @ 250:d08f19d529eb

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.
author John "Elwin" Edwards
date Wed, 20 Jul 2016 20:44:41 -0400
parents 696277507a2e
children e52a8a7ad4c5
line wrap: on
line diff
--- 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;
         }