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