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

Another minor patch.



The following patch fixes a bug in which if you saved out with a slow
digestion ring, it lost effect when you restored the game, and removing it
caused you to eat faster than normal.. (the opposite.. saving with a slow
(err speed) digestion ring on, then removing it when you started up again
was nasty as well).
Also, it was saving last_level as a lev_array keyword, so I changed to restore
that correctly.

These patches are against .87.8 code.

--------------cut here--------------------------------
*** login.c.old	Mon Sep 28 17:46:10 1992
--- login.c	Mon Sep 28 17:52:28 1992
***************
*** 91,100 ****
    fprintf(fp,"listening %d\n",op->contr->listening);
    fprintf(fp,"spell %d\n",op->contr->chosen_spell);
    fprintf(fp,"shoottype %d\n",op->contr->shoottype);
!   fprintf(fp,"lev_array %d\n",op->contr->last_level);
    fprintf(fp,"berzerk %d\n",op->contr->berzerk);
    fprintf(fp,"peaceful %d\n",op->contr->peaceful);
    fprintf(fp,"scroll %d\n",op->contr->scroll);
    for(i=0;i<NROFPUSHKEYS;i++)
      if(op->contr->pushstring[i][0]!='\0')
        fprintf(fp,"pushkey %s %s\n",
--- 91,101 ----
    fprintf(fp,"listening %d\n",op->contr->listening);
    fprintf(fp,"spell %d\n",op->contr->chosen_spell);
    fprintf(fp,"shoottype %d\n",op->contr->shoottype);
!   fprintf(fp,"last_level %d\n",op->contr->last_level);
    fprintf(fp,"berzerk %d\n",op->contr->berzerk);
    fprintf(fp,"peaceful %d\n",op->contr->peaceful);
    fprintf(fp,"scroll %d\n",op->contr->scroll);
+   fprintf(fp, "digestion %d", op->contr->digestion);
    for(i=0;i<NROFPUSHKEYS;i++)
      if(op->contr->pushstring[i][0]!='\0')
        fprintf(fp,"pushkey %s %s\n",
***************
*** 186,191 ****
--- 187,196 ----
            op->contr->peaceful=value;
          if (!strcmp(buf,"scroll"))
            op->contr->scroll=value;
+         if (!strcmp(buf, "digestion"))
+           op->contr->digestion=value;
+         if (!strcmp(buf, "last_level"))
+           op->contr->last_level=value;
          if (!strcmp(buf,"lev_array")){
            for(i=1;i<=value;i++) {
              int j;
-------------------------------------------------------------------------
Practice random kindness and senseless acts of beauty --Anonymous
Argue for your limitations and sure enough they're yours --Richard Bach
Isn't humanity egocentric? Whenever we talk, we say "Here's my two cents
  worth," but we only offer "a penny for your thoughts." --ariel@cs.ucla.edu

Moonchilde/Amythyst/JT Traub ---           jtraub@cmu.edu