Fix flow texture panning

This commit is contained in:
nukeykt 2019-11-15 17:29:39 +09:00 committed by Christoph Oelckers
parent c970aebb54
commit eb456e0dda

View file

@ -589,8 +589,8 @@ void AddFlow(int nSprite, int a, int b)
sFlowInfo[nFlow].field_14 = (tilesiz[nPic].x << 14) - 1;
sFlowInfo[nFlow].field_18 = (tilesiz[nPic].y << 14) - 1;
sFlowInfo[nFlow].field_C = (-Sin(nAngle + 512)) * a;
sFlowInfo[nFlow].field_10 = (-Sin(nAngle)) * a;
sFlowInfo[nFlow].field_C = -Cos(nAngle) * a;
sFlowInfo[nFlow].field_10 = Sin(nAngle) * a;
}
else
{
@ -608,8 +608,8 @@ void AddFlow(int nSprite, int a, int b)
sFlowInfo[nFlow].field_14 = (tilesiz[nPic].x * wall[var_18].xrepeat) << 8;
sFlowInfo[nFlow].field_18 = (tilesiz[nPic].y * wall[var_18].yrepeat) << 8;
sFlowInfo[nFlow].field_C = (-Sin(nAngle + 512)) * a;
sFlowInfo[nFlow].field_10 = (-Sin(nAngle)) * a;
sFlowInfo[nFlow].field_C = -Cos(nAngle) * a;
sFlowInfo[nFlow].field_10 = Sin(nAngle) * a;
}
sFlowInfo[nFlow].field_8 = 0;