Artificial
Without Intelligence
- Reaction score
- 326
> [ljass]set this.increment = (endAlpha - startAlpha) / R2I( time * T32_PERIOD )[/ljass]
[ljass]R2I(2.5 * 0.03125)[/ljass] kinda like might possibly be 0, and dividing by 0 ain't quite nice. So just do the R2I elsewhere, either when setting the unit's vertex color ([ljass]call SetUnitVertexColor(..., R2I(this.alpha))[/ljass]) or like this:
[ljass]set this.increment = R2I((endAlpha - startAlpha) / time * T32_PERIOD)[/ljass]
[ljass]R2I(2.5 * 0.03125)[/ljass] kinda like might possibly be 0, and dividing by 0 ain't quite nice. So just do the R2I elsewhere, either when setting the unit's vertex color ([ljass]call SetUnitVertexColor(..., R2I(this.alpha))[/ljass]) or like this:
[ljass]set this.increment = R2I((endAlpha - startAlpha) / time * T32_PERIOD)[/ljass]