mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-13 19:40:43 +00:00
- fixed: stale, but still active interpolations for wall positions should not trigger sector retriangulation.
This commit is contained in:
parent
dc234ea72d
commit
3ff3c6f50e
1 changed files with 3 additions and 2 deletions
|
@ -61,6 +61,7 @@ double Get(int index, int type)
|
|||
|
||||
void Set(int index, int type, double val)
|
||||
{
|
||||
int old;
|
||||
switch(type)
|
||||
{
|
||||
case Interp_Sect_Floorz: sector[index].floorz = xs_CRoundToInt(val); break;
|
||||
|
@ -72,8 +73,8 @@ void Set(int index, int type, double val)
|
|||
case Interp_Sect_CeilingPanX: sector[index].ceilingxpan_ = float(val); break;
|
||||
case Interp_Sect_CeilingPanY: sector[index].ceilingypan_ = float(val); break;
|
||||
|
||||
case Interp_Wall_X: wall[index].x = xs_CRoundToInt(val); sector[wall[index].sector].dirty = 255; break;
|
||||
case Interp_Wall_Y: wall[index].y = xs_CRoundToInt(val); sector[wall[index].sector].dirty = 255; break;
|
||||
case Interp_Wall_X: old = wall[index].x; wall[index].x = xs_CRoundToInt(val); if (wall[index].x != old) sector[wall[index].sector].dirty = 255; break;
|
||||
case Interp_Wall_Y: old = wall[index].y; wall[index].y = xs_CRoundToInt(val); if (wall[index].y != old) sector[wall[index].sector].dirty = 255; break;
|
||||
case Interp_Wall_PanX: wall[index].xpan_ = float(val); break;
|
||||
case Interp_Wall_PanY: wall[index].ypan_ = float(val); break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue