|
|
|
@ -521,7 +521,7 @@ void R_EmitCachedEdge (void)
@@ -521,7 +521,7 @@ void R_EmitCachedEdge (void)
|
|
|
|
|
{ |
|
|
|
|
edge_t *pedge_t; |
|
|
|
|
|
|
|
|
|
pedge_t = (edge_t *)((unsigned long)r_edges + r_pedge->cachededgeoffset); |
|
|
|
|
pedge_t = (edge_t *)((unsigned long long)r_edges + r_pedge->cachededgeoffset); |
|
|
|
|
|
|
|
|
|
if (!pedge_t->surfs[0]) |
|
|
|
|
pedge_t->surfs[0] = surface_p - surfaces; |
|
|
|
@ -624,9 +624,9 @@ void R_RenderFace (msurface_t *fa, int clipflags)
@@ -624,9 +624,9 @@ void R_RenderFace (msurface_t *fa, int clipflags)
|
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
if ((((unsigned long)edge_p - (unsigned long)r_edges) > |
|
|
|
|
if ((((unsigned long long)edge_p - (unsigned long long)r_edges) > |
|
|
|
|
r_pedge->cachededgeoffset) && |
|
|
|
|
(((edge_t *)((unsigned long)r_edges + |
|
|
|
|
(((edge_t *)((unsigned long long)r_edges + |
|
|
|
|
r_pedge->cachededgeoffset))->owner == r_pedge)) |
|
|
|
|
{ |
|
|
|
|
R_EmitCachedEdge (); |
|
|
|
@ -670,9 +670,9 @@ void R_RenderFace (msurface_t *fa, int clipflags)
@@ -670,9 +670,9 @@ void R_RenderFace (msurface_t *fa, int clipflags)
|
|
|
|
|
{ |
|
|
|
|
// it's cached if the cached edge is valid and is owned
|
|
|
|
|
// by this medge_t
|
|
|
|
|
if ((((unsigned long)edge_p - (unsigned long)r_edges) > |
|
|
|
|
if ((((unsigned long long)edge_p - (unsigned long long)r_edges) > |
|
|
|
|
r_pedge->cachededgeoffset) && |
|
|
|
|
(((edge_t *)((unsigned long)r_edges + |
|
|
|
|
(((edge_t *)((unsigned long long)r_edges + |
|
|
|
|
r_pedge->cachededgeoffset))->owner == r_pedge)) |
|
|
|
|
{ |
|
|
|
|
R_EmitCachedEdge (); |
|
|
|
|