[crossfire] Re: [Crossfire-cvs] CVS commit: crossfire

Mark Wedel mwedel at sonic.net
Mon Oct 3 23:55:03 CDT 2005


>
     
      ***************
     
     >
     
      *** 1190,1199 ****
     
     >
     
             */
     
     >
     
            if (m->difficulty) fprintf(fp,"difficulty %d\n", m->difficulty);
     
     >
     
            if (m->region) fprintf(fp,"region %s\n", m->region->name);
     
     >
     
      !     if (m->shopgreed) {
     
     >
     
        	print_shop_string(m, shop);
     
     >
     
        	fprintf(fp,"shopitems %s\n", shop);
     
     >
     
            }
     
     >
     
            if (m->shopmin) fprintf(fp,"shopgreed %d\n", m->shopmin);
     
     >
     
            if (m->shopmax) fprintf(fp,"shopgreed %d\n", m->shopmax);
     
     >
     
            if (m->shoprace) fprintf(fp,"shoprace %s\n", m->shoprace);
     
     >
     
      --- 1190,1200 ----
     
     >
     
             */
     
     >
     
            if (m->difficulty) fprintf(fp,"difficulty %d\n", m->difficulty);
     
     >
     
            if (m->region) fprintf(fp,"region %s\n", m->region->name);
     
     >
     
      !     if (m->shopitems) {
     
     >
     
        	print_shop_string(m, shop);
     
     >
     
        	fprintf(fp,"shopitems %s\n", shop);
     
     >
     
            }
     
     >
     
      +     if (m->shopgreed) fprintf(fp,"shopgreed %f\n", m->shopgreed);
     
     >
     
            if (m->shopmin) fprintf(fp,"shopgreed %d\n", m->shopmin);
     
     >
     
            if (m->shopmax) fprintf(fp,"shopgreed %d\n", m->shopmax);
     
     
  Is that code there really correct?  It seems you are saving shopgreed as the 
field name when you are actually saving shopmin and shopmax.


    
    


More information about the crossfire mailing list