volumetricsteve / Q3MAP4

Reworking of q3map2 and q3map3 to develop a smaller, cleaner codebase (linux only)
7 stars 1 forks source link

Inner loop damages iterator of outer loop #1

Open uis246 opened 6 months ago

uis246 commented 6 months ago

Here iterator i used by outer loop is reset in inner loop. This was fixed in NetRadiant-Custom q3map2 many years ago.

volumetricsteve commented 6 months ago

What was the problem? I'm not sure what's being fixed here

uis246 commented 6 months ago

Variables i, j and k are used for iterating over triangle, variable l is used inside this loop for example here. On the line I mentioned before(and inside that loop) variable l should be used instead of i.