mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-15 08:41:59 +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 *curr;
|
||||
|
||||
double fheight = add->ZatPoint(ViewPos);
|
||||
if(fheight >= sec->CenterCeiling()) return;
|
||||
if(fheight <= sec->CenterFloor()) return;
|
||||
double height = add->ZatPoint(ViewPos);
|
||||
if(height >= sec->CenterCeiling()) return;
|
||||
if(height <= sec->CenterFloor()) return;
|
||||
|
||||
fixed_t height = FLOAT2FIXED(fheight);
|
||||
fakeActive = 1;
|
||||
|
||||
if(height_max >= 0) {
|
||||
|
|
Loading…
Reference in a new issue