mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Fix the San Andreas texture fix in some cases.
git-svn-id: https://svn.eduke32.com/eduke32@1565 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ce20870e21
commit
3c018e64ce
1 changed files with 6 additions and 3 deletions
|
@ -2467,9 +2467,10 @@ static void polymer_updatewall(int16_t wallnum)
|
|||
ypancoef = (float)(pow2long[picsiz[curpicnum] >> 4]);
|
||||
if (ypancoef < tilesizy[curpicnum])
|
||||
ypancoef *= 2;
|
||||
curypanning = wal->ypanning;
|
||||
if (curypanning > 256 - (ypancoef - tilesizy[curpicnum]) * (256.0f / ypancoef))
|
||||
curypanning -= (ypancoef - tilesizy[curpicnum]) * (256.0f / ypancoef);
|
||||
ypancoef *= (float)(wal->ypanning) / (256.0f * (float)(tilesizy[curpicnum]));
|
||||
ypancoef *= (float)(curypanning) / (256.0f * (float)(tilesizy[curpicnum]));
|
||||
}
|
||||
else
|
||||
ypancoef = 0;
|
||||
|
@ -2626,9 +2627,10 @@ static void polymer_updatewall(int16_t wallnum)
|
|||
ypancoef = (float)(pow2long[picsiz[curpicnum] >> 4]);
|
||||
if (ypancoef < tilesizy[curpicnum])
|
||||
ypancoef *= 2;
|
||||
curypanning = wal->ypanning;
|
||||
if (curypanning > 256 - (ypancoef - tilesizy[curpicnum]) * (256.0f / ypancoef))
|
||||
curypanning -= (ypancoef - tilesizy[curpicnum]) * (256.0f / ypancoef);
|
||||
ypancoef *= (float)(wal->ypanning) / (256.0f * (float)(tilesizy[curpicnum]));
|
||||
ypancoef *= (float)(curypanning) / (256.0f * (float)(tilesizy[curpicnum]));
|
||||
}
|
||||
else
|
||||
ypancoef = 0;
|
||||
|
@ -2678,9 +2680,10 @@ static void polymer_updatewall(int16_t wallnum)
|
|||
ypancoef = (float)(pow2long[picsiz[curpicnum] >> 4]);
|
||||
if (ypancoef < tilesizy[curpicnum])
|
||||
ypancoef *= 2;
|
||||
curypanning = wal->ypanning;
|
||||
if (curypanning > 256 - (ypancoef - tilesizy[curpicnum]) * (256.0f / ypancoef))
|
||||
curypanning -= (ypancoef - tilesizy[curpicnum]) * (256.0f / ypancoef);
|
||||
ypancoef *= (float)(wal->ypanning) / (256.0f * (float)(tilesizy[curpicnum]));
|
||||
ypancoef *= (float)(curypanning) / (256.0f * (float)(tilesizy[curpicnum]));
|
||||
}
|
||||
else
|
||||
ypancoef = 0;
|
||||
|
|
Loading…
Reference in a new issue