Was incorrectly passing floorz instead of ceilingz to BuildElevC()
This commit is contained in:
sirlemonhead 2019-10-02 02:02:32 +01:00 committed by Christoph Oelckers
parent d4bdf01958
commit 14fc2a76cf

View file

@ -893,7 +893,7 @@ void runlist_ProcessSectorTag(int nSector, int lotag, int hitag)
short nextSector = nextsectorneighborz(nSector, sector[nSector].ceilingz, -1, -1); short nextSector = nextsectorneighborz(nSector, sector[nSector].ceilingz, -1, -1);
assert(nextSector > -1); assert(nextSector > -1);
int nElev = BuildElevC(0, nChannel, nSector, FindWallSprites(nSector), var_18 * 100, var_18 * 100, 2, sector[nSector].floorz, sector[nextSector].floorz); int nElev = BuildElevC(0, nChannel, nSector, FindWallSprites(nSector), var_18 * 100, var_18 * 100, 2, sector[nSector].floorz, sector[nextSector].ceilingz);
runlist_AddRunRec(sRunChannels[nChannel].a, nElev); runlist_AddRunRec(sRunChannels[nChannel].a, nElev);