mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-01 00:21:35 +00:00
Fix unneeded fixed_t height in R_3D_AddHeight()
This commit is contained in:
parent
ee43c4ff95
commit
a029c7b664
1 changed files with 3 additions and 4 deletions
|
@ -53,11 +53,10 @@ void R_3D_AddHeight(secplane_t *add, sector_t *sec)
|
||||||
HeightLevel *near;
|
HeightLevel *near;
|
||||||
HeightLevel *curr;
|
HeightLevel *curr;
|
||||||
|
|
||||||
double fheight = add->ZatPoint(ViewPos);
|
double height = add->ZatPoint(ViewPos);
|
||||||
if(fheight >= sec->CenterCeiling()) return;
|
if(height >= sec->CenterCeiling()) return;
|
||||||
if(fheight <= sec->CenterFloor()) return;
|
if(height <= sec->CenterFloor()) return;
|
||||||
|
|
||||||
fixed_t height = FLOAT2FIXED(fheight);
|
|
||||||
fakeActive = 1;
|
fakeActive = 1;
|
||||||
|
|
||||||
if(height_max >= 0) {
|
if(height_max >= 0) {
|
||||||
|
|
Loading…
Reference in a new issue