Fix of "frozen" waterfalls... Bug caused by missing declaration of num21 in WaterfallManager.DrawWaterfall()
Code:
int num16 = 0;
int num17 = 0;
int num18 = 0;
int num19 = 0;
int num20 = 0;
int num21; //Looks like it was missing...
int num22;
And below we must remove declaration
Code:
if (!Main.drewLava && this.waterfalls[i].stopAtStep != 0)
{
/*!FIX int */num21 = 32 * this.slowFrame;
goto IL_3FA;
}
Code:
else if (num12 == 2 && Main.drewLava)
{
goto IL_1879;
}
/*!FIX int */num21 = 32 * this.regularFrame;
goto IL_3FA;
And before drawing...
Code:
Main.dust[num55].velocity *= 0f;
}
}
//int num21 = 0; //Waterfalls was stuck on 0 frame...
if (num15 == 0 && num36 != 0 && num16 == 1 && num17 != num18)
{
num36 = 0;
num17 = num18;
nivlac, can you say what is your "modified version of ILSpy"? It's your mod or I can find it somewhere in public?