[CF-Devel] CVS update: crossfire/server

Crossfire CVS devel mwedel at scruznet.com
Tue Jun 27 23:23:09 CDT 2000


Date:	Tuesday June 27, 2000 @ 21:23
Author:	cvs

Update of /home/cvs/CVS/crossfire/server
In directory boltzmann:/tmp/cvs-serv2167/server

Modified Files:
	login.c 
Log Message:
INSTALL, README:  Update mailing address to real-time address.  MSW  6/27/2000

server/login.c: Load and save usekeys value in player save file.  MSW 6/27/2000




****************************************

Index: crossfire/server/login.c
diff -u crossfire/server/login.c:1.7 crossfire/server/login.c:1.8
--- crossfire/server/login.c:1.7	Fri May 26 02:50:49 2000
+++ crossfire/server/login.c	Tue Jun 27 21:23:09 2000
@@ -1,6 +1,6 @@
 /*
  * static char *rcsid_login_c =
- *   "$Id: login.c,v 1.7 2000/05/26 09:50:49 jec Exp $";
+ *   "$Id: login.c,v 1.8 2000/06/28 04:23:09 cvs Exp $";
  */
 
 /*
@@ -346,6 +346,9 @@
   fprintf(fp,"pickup %d\n", pl->mode);
   fprintf(fp,"outputs_sync %d\n", pl->outputs_sync);
   fprintf(fp,"outputs_count %d\n", pl->outputs_count);
+  /* Match the enumerations but in string form */
+  fprintf(fp,"usekeys %s\n", pl->usekeys==key_inventory?"key_inventory":
+	  (pl->usekeys==keyrings?"keyrings":"containers"));
 
 #ifdef BACKUP_SAVE_AT_HOME
   if (op->map!=NULL && flag==0)
@@ -627,6 +630,15 @@
 	    pl->orig_stats.Wis=value;
         else if (!strcmp(buf,"Cha"))
 	    pl->orig_stats.Cha=value;
+	else if (!strcmp(buf,"usekeys")) {
+	    if (!strcmp(bufall+8,"key_inventory\n"))
+		pl->usekeys=key_inventory;
+	    else if (!strcmp(bufall+8,"keyrings\n"))
+		pl->usekeys=keyrings;
+	    else if (!strcmp(bufall+8,"containers\n"))
+		pl->usekeys=containers;
+	    else LOG(llevDebug,"load_player: got unknown usekeys type: %s\n", bufall+8);
+	}
         else if (!strcmp(buf,"lev_array")){
 	    for(i=1;i<=value;i++) {
 		int j;

    
    


More information about the crossfire mailing list