Skip to content

Commit 500fd00

Browse files
author
nitrocaster
committed
xrRender_R2: Fix conformance in For loop scope (#104).
1 parent 6401806 commit 500fd00

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Layers/xrRenderPC_R2/r2_loader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ void CRender::LoadSectors(IReader* fs)
331331
{
332332
CDB::Collector CL;
333333
fs->find_chunk (fsL_PORTALS);
334-
for (i=0; i<count; i++)
334+
for (u32 i=0; i<count; i++)
335335
{
336336
b_portal P;
337337
fs->r (&P,sizeof(P));

src/Layers/xrRenderPC_R2/r2_rendertarget_phase_bloom.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ void CalcGauss_k7(
4040
// calculate
4141
float mag = 0;
4242
for (int i=-7; i<=0; i++) W[-i] = expf (-float(i*i)/(2*r*r)); // weight
43-
for (i=0; i<8; i++) mag += i?2*W[i]:W[i]; // symmetrical weight
44-
for (i=0; i<8; i++) W[i] = s_out*W[i]/mag;
43+
for (int i=0; i<8; i++) mag += i?2*W[i]:W[i]; // symmetrical weight
44+
for (int i=0; i<8; i++) W[i] = s_out*W[i]/mag;
4545

4646
// W[0]=0, W[7]=-7
4747
w0.set (W[1],W[2],W[3],W[4]); // -1, -2, -3, -4

0 commit comments

Comments
 (0)