mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- Duke: Amend 7e8ef99ec9
to adjust view height where it was originally adjusted.
* Doing this in `renderView()` unconditionally isn't correct as it can lead to a double adjustment if `p->spritebridge == 0 && p->newOwner == nullptr`.
This commit is contained in:
parent
7e8ef99ec9
commit
6f65eb2270
1 changed files with 1 additions and 2 deletions
|
@ -69,7 +69,6 @@ BEGIN_DUKE_NS
|
|||
|
||||
void renderView(spritetype* playersprite, int sectnum, int x, int y, int z, binangle a, fixedhoriz h, lookangle rotscrnang, int smoothratio)
|
||||
{
|
||||
z -= -(4 << 8);
|
||||
if (!testnewrenderer)
|
||||
{
|
||||
// do screen rotation.
|
||||
|
@ -274,7 +273,7 @@ void displayrooms(int snum, double smoothratio)
|
|||
cang = buildfang(ud.cameraactor->tempang + MulScaleF(((s->ang + 1024 - ud.cameraactor->tempang) & 2047) - 1024, smoothratio, 16));
|
||||
|
||||
auto bh = buildhoriz(s->yvel);
|
||||
renderView(s, s->sectnum, s->x, s->y, s->z, cang, bh, buildlook(0), smoothratio);
|
||||
renderView(s, s->sectnum, s->x, s->y, s->z - (4 << 8), cang, bh, buildlook(0), smoothratio);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue