mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 20:40:47 +00:00
- Exhumed: interpolate lifts/platforms
Unfortunately this reveals a rather ugly problem with player movement on such a platform that still needs examination.
This commit is contained in:
parent
afdfcba9c3
commit
98ee5178aa
1 changed files with 2 additions and 0 deletions
|
@ -821,6 +821,7 @@ void FuncElev(int a, int, int nRun)
|
|||
|
||||
short nSectorB = nSector;
|
||||
|
||||
StartInterpolation(nSector, Interp_Sect_Floorz);
|
||||
int nVal = LongSeek((int*)§or[nSector].floorz, nZVal, Elevator[nElev].field_6, Elevator[nElev].field_A);
|
||||
ebp = nVal;
|
||||
|
||||
|
@ -862,6 +863,7 @@ void FuncElev(int a, int, int nRun)
|
|||
int nZOffset = Elevator[nElev].nCurZOffset;
|
||||
int zVal = Elevator[nElev].zOffsets[nZOffset];
|
||||
|
||||
StartInterpolation(nSector, Interp_Sect_Ceilingz);
|
||||
int nVal = LongSeek(&ceilZ, zVal, Elevator[nElev].field_6, Elevator[nElev].field_A);
|
||||
ebp = nVal;
|
||||
|
||||
|
|
Loading…
Reference in a new issue