mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
Fix getflor/ceilingofslope_old
This commit is contained in:
parent
6b6ecaf0fa
commit
bef08f4442
1 changed files with 2 additions and 2 deletions
|
@ -797,7 +797,7 @@ int32_t getceilzofslope_old(int32_t sectnum, int32_t dax, int32_t day)
|
||||||
dx = wall[wall[j].point2].x-wall[j].x;
|
dx = wall[wall[j].point2].x-wall[j].x;
|
||||||
dy = wall[wall[j].point2].y-wall[j].y;
|
dy = wall[wall[j].point2].y-wall[j].y;
|
||||||
i = (ksqrtasm_old(dx*dx+dy*dy)); if (i == 0) return(sector[sectnum].ceilingz);
|
i = (ksqrtasm_old(dx*dx+dy*dy)); if (i == 0) return(sector[sectnum].ceilingz);
|
||||||
i = divscale20(sector[sectnum].ceilingheinum,i);
|
i = divscale15(sector[sectnum].ceilingheinum,i);
|
||||||
dx *= i; dy *= i;
|
dx *= i; dy *= i;
|
||||||
return(sector[sectnum].ceilingz+dmulscale23(dx,day-wall[j].y,-dy,dax-wall[j].x));
|
return(sector[sectnum].ceilingz+dmulscale23(dx,day-wall[j].y,-dy,dax-wall[j].x));
|
||||||
}
|
}
|
||||||
|
@ -811,7 +811,7 @@ int32_t getflorzofslope_old(int32_t sectnum, int32_t dax, int32_t day)
|
||||||
dx = wall[wall[j].point2].x-wall[j].x;
|
dx = wall[wall[j].point2].x-wall[j].x;
|
||||||
dy = wall[wall[j].point2].y-wall[j].y;
|
dy = wall[wall[j].point2].y-wall[j].y;
|
||||||
i = (ksqrtasm_old(dx*dx+dy*dy)); if (i == 0) return sector[sectnum].floorz;
|
i = (ksqrtasm_old(dx*dx+dy*dy)); if (i == 0) return sector[sectnum].floorz;
|
||||||
i = divscale20(sector[sectnum].floorheinum,i);
|
i = divscale15(sector[sectnum].floorheinum,i);
|
||||||
dx *= i; dy *= i;
|
dx *= i; dy *= i;
|
||||||
return(sector[sectnum].floorz+dmulscale23(dx,day-wall[j].y,-dy,dax-wall[j].x));
|
return(sector[sectnum].floorz+dmulscale23(dx,day-wall[j].y,-dy,dax-wall[j].x));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue