comparison src/objects.cc @ 100:535fb24283a4

Fix warnings.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 06 Oct 2014 01:49:17 +0300
parents 9df6681725da
children 20aa5a515896
comparison
equal deleted inserted replaced
99:9df6681725da 100:535fb24283a4
158 if ((LineDefs[n].sidedef1 != -1 && SideDefs[LineDefs[n].sidedef1].sector == objnum) || 158 if ((LineDefs[n].sidedef1 != -1 && SideDefs[LineDefs[n].sidedef1].sector == objnum) ||
159 (LineDefs[n].sidedef2 != -1 && SideDefs[LineDefs[n].sidedef2].sector == objnum)) 159 (LineDefs[n].sidedef2 != -1 && SideDefs[LineDefs[n].sidedef2].sector == objnum))
160 { 160 {
161 const struct Vertex *v1 = Vertices + LineDefs[n].start; 161 const struct Vertex *v1 = Vertices + LineDefs[n].start;
162 const struct Vertex *v2 = Vertices + LineDefs[n].end; 162 const struct Vertex *v2 = Vertices + LineDefs[n].end;
163 if (v1->x < mapx0 && v2->x < mapx0 || 163 if ((v1->x < mapx0 && v2->x < mapx0) ||
164 v1->x > mapx1 && v2->x > mapx1 || 164 (v1->x > mapx1 && v2->x > mapx1) ||
165 v1->y < mapy0 && v2->y < mapy0 || 165 (v1->y < mapy0 && v2->y < mapy0) ||
166 v1->y > mapy1 && v2->y > mapy1) 166 (v1->y > mapy1 && v2->y > mapy1))
167 continue; // Off-screen 167 continue; // Off-screen
168 DrawMapLine(v1->x, v1->y, v2->x, v2->y); 168 DrawMapLine(v1->x, v1->y, v2->x, v2->y);
169 } 169 }
170 if (colour != LIGHTRED && Sectors[objnum].tag > 0) 170 if (colour != LIGHTRED && Sectors[objnum].tag > 0)
171 { 171 {