Decompile fn_19854 (CEffectPrim::RenderGroundFog)
Batch #11532 by SapitoSucio: 0 byte-identical, 1 confirmed by peer review. - fn_19854 CEffectPrim::RenderGroundFog: logic confirmed by peer review Peer-reviewed-by: Yommy, cremane Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
09f365a4a9
commit
d54fa07821
1 changed files with 6 additions and 6 deletions
|
|
@ -5417,16 +5417,16 @@ void CEffectPrim::RenderGroundFog(matrix& wtm) {
|
|||
continue;
|
||||
}
|
||||
|
||||
if (copy == 0 && kind == 11) {
|
||||
alpha = 250;
|
||||
if (-40.0f > y) {
|
||||
alpha = static_cast<int>((y + 40.0f) * 25.0f + 250.0f);
|
||||
}
|
||||
} else if (kind <= 1 || kind == 11) {
|
||||
if (kind < 2) {
|
||||
alpha = 250;
|
||||
if (-20.0f > y) {
|
||||
alpha = static_cast<int>((y + 20.0f) * 25.0f + 250.0f);
|
||||
}
|
||||
} else if (kind == 11) {
|
||||
alpha = 250;
|
||||
if (-40.0f > y) {
|
||||
alpha = static_cast<int>((y + 40.0f) * 25.0f + 250.0f);
|
||||
}
|
||||
} else if (kind == 14 || kind == 16) {
|
||||
alpha = 100;
|
||||
if (y > -10.0f) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue