| version 1.3 | | version 1.4 |
|---|
| | |
| * object rendering | | * object rendering |
| * | | * |
| * $Log$ | | * $Log$ |
| | | * Revision 1.4 2000/06/25 08:34:29 sekmu |
| | | * file-line for segfault info |
| | | * |
| * Revision 1.3 2000/04/19 21:27:57 sekmu | | * Revision 1.3 2000/04/19 21:27:57 sekmu |
| * movable death-cam from WraithX | | * movable death-cam from WraithX |
| * | | * |
| | |
| if (type==OBJ_DEBRIS && Debris_object_count>=Max_debris_objects) | | if (type==OBJ_DEBRIS && Debris_object_count>=Max_debris_objects) |
| return -1; | | return -1; |
| | | |
| if (get_seg_masks(pos,segnum,0).centermask!=0) | | if (get_seg_masks(pos,segnum,0,__FILE__,__LINE__).centermask!=0) |
| if ((segnum=find_point_seg(pos,segnum))==-1) { | | if ((segnum=find_point_seg(pos,segnum))==-1) { |
| #ifndef NDEBUG | | #ifndef NDEBUG |
| mprintf((0,"Bad segnum in obj_create (type=%d)\n",type)); | | mprintf((0,"Bad segnum in obj_create (type=%d)\n",type)); |
| | |
| obj_link(objnum,newsegnum); | | obj_link(objnum,newsegnum); |
| | | |
| #ifndef NDEBUG | | #ifndef NDEBUG |
| if (get_seg_masks(&Objects[objnum].pos,Objects[objnum].segnum,0).centermask!=0) | | if (get_seg_masks(&Objects[objnum].pos,Objects[objnum].segnum,0,__FILE__,__LINE__).centermask!=0) |
| mprintf((1, "obj_relink violates seg masks.\n")); | | mprintf((1, "obj_relink violates seg masks.\n")); |
| #endif | | #endif |
| } | | } |