ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/loader.C
(Generate patch)

Comparing deliantra/server/common/loader.C (file contents):
Revision 1.2 by root, Mon Sep 4 11:07:59 2006 UTC vs.
Revision 1.3 by root, Mon Sep 4 13:55:54 2006 UTC

624 op->move_slow |= MOVE_WALK; 624 op->move_slow |= MOVE_WALK;
625 thawer.get (op->move_slow_penalty); 625 thawer.get (op->move_slow_penalty);
626 break; 626 break;
627 627
628 case KW_face: 628 case KW_face:
629 if (const char *str = thawer.get_str ())
629 op->face = &new_faces[FindFace (thawer.get_str (), 0)]; 630 op->face = &new_faces[FindFace (str, 0)];
631 else
632 op->face = 0;
630 break; 633 break;
631 634
632 case KW_x: thawer.get (op->x); break; 635 case KW_x: thawer.get (op->x); break;
633 case KW_y: thawer.get (op->y); break; 636 case KW_y: thawer.get (op->y); break;
634 case KW_str: thawer.get (op->stats.Str); break; 637 case KW_str: thawer.get (op->stats.Str); break;
996 thawer.line += strlen (thawer.line) + 1; 999 thawer.line += strlen (thawer.line) + 1;
997 1000
998 break; 1001 break;
999 1002
1000 default: 1003 default:
1001 printf ("kw abort %d\n", kw);//D 1004 printf ("kw abort %s\n", keyword_str [kw]);//D
1002 abort (); 1005 abort ();
1003 } 1006 }
1004 } 1007 }
1005} 1008}
1006 1009
1133 */ 1136 */
1134 if (all_count <=1) return retbuf_all+1; 1137 if (all_count <=1) return retbuf_all+1;
1135 else return retbuf+1; 1138 else return retbuf+1;
1136} 1139}
1137 1140
1138
1139// compare *op against *tmp and output differences 1141// compare *op against *tmp and output differences
1140void 1142void
1141put (object_freezer &f, object *op, object *tmp) 1143put (object_freezer &f, object *op, object *tmp)
1142{ 1144{
1143 int i; 1145 int i;
1173 if (op->lore != tmp->lore) f.put (KW_lore, KW_endlore, op->lore); 1175 if (op->lore != tmp->lore) f.put (KW_lore, KW_endlore, op->lore);
1174 1176
1175 CMP_OUT (other_arch); 1177 CMP_OUT (other_arch);
1176 CMP_OUT (face); 1178 CMP_OUT (face);
1177 1179
1180 if (!op->face || !op->face->name)
1181 printf ("ERRFACE<%s,%s, face %p,%p, fname%s>\n", &tmp->name, &op->name, tmp->face, op->face, op->face ? &op->face->name : "<noface>");//D
1182
1178 if (op->animation_id != tmp->animation_id) 1183 if (op->animation_id != tmp->animation_id)
1179 if (op->animation_id) 1184 if (op->animation_id)
1180 { 1185 {
1181 f.put (KW_animation, animations[GET_ANIM_ID (op)].name); 1186 f.put (KW_animation, animations[GET_ANIM_ID (op)].name);
1182 1187
1183 if (!QUERY_FLAG (op, FLAG_ANIMATE)) 1188 if (!QUERY_FLAG (op, FLAG_ANIMATE))
1184 f.put (KW_is_animated, 0); 1189 f.put (KW_is_animated, (sint32)0);
1185 } 1190 }
1186 else 1191 else
1187 f.put (KW_animation, "NONE"); 1192 f.put (KW_animation, (const char *)0);
1188 1193
1189 CMP_OUT2 (str , stats.Str); 1194 CMP_OUT2 (str , stats.Str);
1190 CMP_OUT2 (dex , stats.Dex); 1195 CMP_OUT2 (dex , stats.Dex);
1191 CMP_OUT2 (con , stats.Con); 1196 CMP_OUT2 (con , stats.Con);
1192 CMP_OUT2 (wis , stats.Wis); 1197 CMP_OUT2 (wis , stats.Wis);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines