comparison 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
comparison
equal deleted inserted replaced
249:9e35b2f9c2ea 250:d08f19d529eb
598 func = 8; 598 func = 8;
599 else if (dlist[i].d_func == sight) 599 else if (dlist[i].d_func == sight)
600 func = 9; 600 func = 9;
601 else if (dlist[i].d_func == turn_see_off) 601 else if (dlist[i].d_func == turn_see_off)
602 func = 10; 602 func = 10;
603 else if (dlist[i].d_func == land)
604 func = 11;
605 else if (dlist[i].d_func == come_down)
606 func = 12;
607 else if (dlist[i].d_func == visuals)
608 func = 13;
603 else if (dlist[i].d_func == NULL) 609 else if (dlist[i].d_func == NULL)
604 func = 0; 610 func = 0;
605 else 611 else
606 func = -1; 612 func = -1;
607 613
658 case 8: dlist[i].d_func = unsee; 664 case 8: dlist[i].d_func = unsee;
659 break; 665 break;
660 case 9: dlist[i].d_func = sight; 666 case 9: dlist[i].d_func = sight;
661 break; 667 break;
662 case 10: dlist[i].d_func = turn_see_off; 668 case 10: dlist[i].d_func = turn_see_off;
669 break;
670 case 11: dlist[i].d_func = land;
671 break;
672 case 12: dlist[i].d_func = come_down;
673 break;
674 case 13: dlist[i].d_func = visuals;
663 break; 675 break;
664 default:dlist[i].d_func = NULL; 676 default:dlist[i].d_func = NULL;
665 break; 677 break;
666 } 678 }
667 679