Difference for main/gameseg.c from version 1.5 to 1.6


version 1.5 version 1.6
Line 19
 
Line 19
  * Functions moved from segment.c to make editor separable from game.   * Functions moved from segment.c to make editor separable from game.
  *    *
  * $Log$   * $Log$
    * Revision 1.6  2003/03/09 06:34:10  donut
    * change byte typedef to sbyte to avoid conflict with win32 byte which is unsigned
    *
  * Revision 1.5  2000/06/25 08:34:29  sekmu   * Revision 1.5  2000/06/25 08:34:29  sekmu
  * file-line for segfault info   * file-line for segfault info
  *   *
Line 307
 
Line 310
 void get_side_verts(short *vertlist,int segnum,int sidenum)  void get_side_verts(short *vertlist,int segnum,int sidenum)
 {  {
  int i;   int i;
  byte  *sv = Side_to_verts[sidenum];   sbyte  *sv = Side_to_verts[sidenum];
  short *vp = Segments[segnum].verts;   short *vp = Segments[segnum].verts;
   
  for (i=4; i--;)   for (i=4; i--;)
Line 1119
 
Line 1122
  int sidenum;   int sidenum;
  int qtail = 0, qhead = 0;   int qtail = 0, qhead = 0;
  int i;   int i;
  byte visited[MAX_SEGMENTS];   sbyte visited[MAX_SEGMENTS];
  seg_seg seg_queue[MAX_SEGMENTS];   seg_seg seg_queue[MAX_SEGMENTS];
  short depth[MAX_SEGMENTS];   short depth[MAX_SEGMENTS];
  int cur_depth;   int cur_depth;
Line 1267
 
Line 1270
 //--unused-- return rval;  //--unused-- return rval;
 //--unused-- }  //--unused-- }
   
 byte convert_to_byte(fix f)  sbyte convert_to_byte(fix f)
 {  {
  if (f >= 0x00010000)   if (f >= 0x00010000)
  return MATRIX_MAX;   return MATRIX_MAX;
Line 1295
 
Line 1298
 void create_shorterpos(shorterpos *spp, object *objp)  void create_shorterpos(shorterpos *spp, object *objp)
 {  {
  // int segnum;   // int segnum;
  byte *sp;   sbyte *sp;
   
  sp = spp->bytemat;   sp = spp->bytemat;
   
Line 1348
 
Line 1351
 void extract_shorterpos(object *objp, shorterpos *spp)  void extract_shorterpos(object *objp, shorterpos *spp)
 {  {
  int segnum;   int segnum;
  byte *sp;   sbyte *sp;
   
  sp = spp->bytemat;   sp = spp->bytemat;
   

Legend:
line(s) removed in v.1.5 
line(s) changed
 line(s) added in v.1.6