mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-19 07:51:03 +00:00
move varibales to scope
This commit is contained in:
parent
be9942d516
commit
78383add97
1 changed files with 4 additions and 2 deletions
|
@ -441,8 +441,7 @@ R_LeadingEdge (edge_t *edge)
|
|||
{
|
||||
if (edge->surfs[1])
|
||||
{
|
||||
surf_t *surf, *surf2;
|
||||
shift20_t iu;
|
||||
surf_t *surf;
|
||||
|
||||
// it's adding a new surface in, so find the correct place
|
||||
surf = &surfaces[edge->surfs[1]];
|
||||
|
@ -452,6 +451,9 @@ R_LeadingEdge (edge_t *edge)
|
|||
// end edge)
|
||||
if (++surf->spanstate == 1)
|
||||
{
|
||||
surf_t *surf2;
|
||||
shift20_t iu;
|
||||
|
||||
surf2 = surfaces[1].next;
|
||||
|
||||
if (surf->key < surf2->key)
|
||||
|
|
Loading…
Reference in a new issue