Added complex error output if illegal segnum passed to get_seg_masks(); Fixed warning about set but unused variables
This commit is contained in:
parent
e8a1f903f9
commit
c4c93e5cf1
|
@ -1,10 +1,17 @@
|
||||||
D1X-Rebirth Changelog
|
D1X-Rebirth Changelog
|
||||||
|
|
||||||
|
20110710
|
||||||
|
--------
|
||||||
|
main/gameseg.c: Added complex error output if illegal segnum passed to get_seg_masks(); Fixed warning about set but unused variables
|
||||||
|
|
||||||
|
20110709
|
||||||
|
--------
|
||||||
|
main/lighting.c: Added new dynamic light calculation which works with find_connected_distance() preventing vertecies to be lit up without connection to light source but still maintaining illumination. Still deactivated as it needs more optimization - planned for 0.58. Removed old alternative dynamic lighting which was suppoed to work via fvi but way slower than the new one
|
||||||
|
|
||||||
20110708
|
20110708
|
||||||
--------
|
--------
|
||||||
main/net_udp.c: Slight improvement for Packet Loss Prevention: Be able to send to 35 packets per call of net_udp_noloss_process_queue() and also let counter only increase if a packet was actually sent, making sure the queue is not stuck on the first 5 packets in the list
|
main/net_udp.c: Slight improvement for Packet Loss Prevention: Be able to send to 35 packets per call of net_udp_noloss_process_queue() and also let counter only increase if a packet was actually sent, making sure the queue is not stuck on the first 5 packets in the list
|
||||||
arch/sdl/digi.c: Make sure hmp_reset() is only executed if a song was playing
|
arch/sdl/digi.c: Make sure hmp_reset() is only executed if a song was playing
|
||||||
main/lighting.c: Added new dynamic light calculation which works with find_connected_distance() preventing vertecies to be lit up without connection to light source but still maintaining illumination. Still deactivated as it needs more optimization - planned for 0.58. Removed old alternative dynamic lighting which was suppoed to work via fvi but way slower than the new one
|
|
||||||
|
|
||||||
20110704
|
20110704
|
||||||
--------
|
--------
|
||||||
|
|
|
@ -305,6 +305,9 @@ segmasks get_seg_masks(vms_vector *checkp,int segnum,fix rad,char *calling_file,
|
||||||
int vertex_list[6];
|
int vertex_list[6];
|
||||||
segment *seg;
|
segment *seg;
|
||||||
|
|
||||||
|
if (segnum < 0 || segnum > Highest_segment_index)
|
||||||
|
Error("segnum == %i (%i) in get_seg_masks()\ncheckp: %i,%i,%i, rad: %i\nfrom file: %s, line: %i\nPlease report this bug.\n",segnum,Highest_segment_index,checkp->x,checkp->y,checkp->z,rad,calling_file,calling_linenum);
|
||||||
|
|
||||||
Assert((segnum <= Highest_segment_index) && (segnum >= 0));
|
Assert((segnum <= Highest_segment_index) && (segnum >= 0));
|
||||||
|
|
||||||
seg = &Segments[segnum];
|
seg = &Segments[segnum];
|
||||||
|
@ -607,14 +610,10 @@ int check_segment_connections(void)
|
||||||
seg = &Segments[segnum];
|
seg = &Segments[segnum];
|
||||||
|
|
||||||
for (sidenum=0;sidenum<6;sidenum++) {
|
for (sidenum=0;sidenum<6;sidenum++) {
|
||||||
side *s;
|
|
||||||
segment *cseg;
|
segment *cseg;
|
||||||
side *cs;
|
|
||||||
int num_faces,csegnum,csidenum,con_num_faces;
|
int num_faces,csegnum,csidenum,con_num_faces;
|
||||||
int vertex_list[6],con_vertex_list[6];
|
int vertex_list[6],con_vertex_list[6];
|
||||||
|
|
||||||
s = &seg->sides[sidenum];
|
|
||||||
|
|
||||||
create_abs_vertex_lists( &num_faces, vertex_list, segnum, sidenum, __FILE__, __LINE__);
|
create_abs_vertex_lists( &num_faces, vertex_list, segnum, sidenum, __FILE__, __LINE__);
|
||||||
|
|
||||||
csegnum = seg->children[sidenum];
|
csegnum = seg->children[sidenum];
|
||||||
|
@ -628,8 +627,6 @@ int check_segment_connections(void)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
cs = &cseg->sides[csidenum];
|
|
||||||
|
|
||||||
create_abs_vertex_lists( &con_num_faces, con_vertex_list, csegnum, csidenum, __FILE__, __LINE__);
|
create_abs_vertex_lists( &con_num_faces, con_vertex_list, csegnum, csidenum, __FILE__, __LINE__);
|
||||||
|
|
||||||
if (con_num_faces != num_faces) {
|
if (con_num_faces != num_faces) {
|
||||||
|
|
Loading…
Reference in a new issue