- 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:
Christoph Oelckers 2021-01-05 22:31:46 +01:00
parent afdfcba9c3
commit 98ee5178aa

View file

@ -821,6 +821,7 @@ void FuncElev(int a, int, int nRun)
short nSectorB = nSector;
StartInterpolation(nSector, Interp_Sect_Floorz);
int nVal = LongSeek((int*)&sector[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;