mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- Create DCoreActor::getRenderPos()
and use within Duke.
This commit is contained in:
parent
d1c5f9516f
commit
4de1b8ad86
2 changed files with 6 additions and 1 deletions
|
@ -176,6 +176,11 @@ public:
|
|||
return opos.plusZ(oviewzoffset);
|
||||
}
|
||||
|
||||
DVector3 getRenderPos(const double interpfrac)
|
||||
{
|
||||
return interpolatedpos(interpfrac).plusZ(interpolatedvalue(oviewzoffset, viewzoffset, interpfrac));
|
||||
}
|
||||
|
||||
sectortype* sector() const
|
||||
{
|
||||
return spr.sectp;
|
||||
|
|
|
@ -293,7 +293,7 @@ void displayrooms(int snum, double interpfrac, bool sceneonly)
|
|||
}
|
||||
else
|
||||
{
|
||||
cpos = viewer->interpolatedpos(interpfrac).plusZ(viewer->viewzoffset);
|
||||
cpos = viewer->getRenderPos(interpfrac);
|
||||
|
||||
if (SyncInput())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue