version 1.5 | | version 1.6 |
---|
| | |
* 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 |
* | | * |
| | |
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--;) |
| | |
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; |
| | |
//--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; |
| | |
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; |
| | |
| | |
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; |
| | |