Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CF: patches for spell_effects and login.c



Here are two patches:

One fixes login.c which will not compile if ENABLE_CHECKSUMS is defined
The second fixes spiell_effects.c which does not compile if
SPELL_FAILURE_EFFECTS is defined

*** login.c.orig	Tue Oct  1 16:39:21 1996
--- login.c	Tue Oct  1 16:40:06 1996
***************
*** 753,759 ****
          LOG(llevDebug,"Checksums: %x %x\n",
                  checksum,calculate_checksum(filename,1));
  #ifdef ENABLE_CHECKSUM
!         if(calculate_checksum(filename) != checksum) {
            new_draw_info(NDI_UNIQUE, 0,op,"Since your savefile has been tampered with,");
            new_draw_info(NDI_UNIQUE, 0,op,"you will not be able to save again.");
            set_cheat(op);
--- 753,759 ----
          LOG(llevDebug,"Checksums: %x %x\n",
                  checksum,calculate_checksum(filename,1));
  #ifdef ENABLE_CHECKSUM
!         if(calculate_checksum(filename,1) != checksum) {
            new_draw_info(NDI_UNIQUE, 0,op,"Since your savefile has been tampered with,");
            new_draw_info(NDI_UNIQUE, 0,op,"you will not be able to save again.");
            set_cheat(op);


*** spell_effect.c.orig	Tue Oct  1 16:53:10 1996
--- spell_effect.c	Tue Oct  1 16:55:14 1996
***************
*** 49,55 ****
    if(failure<= -20&&failure > -40) /* wonder */
      {
       new_draw_info(NDI_UNIQUE, 0,op,"Your spell causes an unexpected effect.");
!      cast_cone(op,0,10,SP_WOW,spellarch[SP_WOW],0);
      }
  
    else if (failure <= -40&&failure > -60) /* confusion */
--- 49,55 ----
    if(failure<= -20&&failure > -40) /* wonder */
      {
       new_draw_info(NDI_UNIQUE, 0,op,"Your spell causes an unexpected effect.");
!      cast_cone(op,op,0,10,SP_WOW,spellarch[SP_WOW],0);
      }
  
    else if (failure <= -40&&failure > -60) /* confusion */



Tim
____________________________________________________________________________
    Tim Moss      SCO Client Integration Division  Phone: +44 (0)1223 518034
Software Engineer Vision Park  Cambridge  England  Phax : +44 (0)1223 518001
                  WWW:  http://www.vision.sco.com  Email:    timm@sco.com