mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-07 07:21:10 +00:00
- vel replacements.
This commit is contained in:
parent
7430a630bd
commit
6e2f8ec47f
1 changed files with 3 additions and 3 deletions
|
@ -1128,10 +1128,10 @@ static void windGenDoVerticalWind(int factor, int nSector)
|
||||||
}
|
}
|
||||||
|
|
||||||
val = -MulScale(factor * 64, 0x10000, 16);
|
val = -MulScale(factor * 64, 0x10000, 16);
|
||||||
if (zvel[pSpr->index] >= 0) zvel[pSpr->index] += val;
|
if (actor->zvel() >= 0) actor->zvel() += val;
|
||||||
else zvel[pSpr->index] = val;
|
else actor->zvel() = val;
|
||||||
|
|
||||||
pSpr->z += zvel[pSpr->index] >> 12;
|
pSpr->z += actor->zvel() >> 12;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue