mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 14:41:40 +00:00
- Truncate rotating polyobjects to 7 bits of fractional precision per vertex.
Fixes known cases of freezing. SVN r3399 (trunk)
This commit is contained in:
parent
64e992f648
commit
f6c1c0e2df
1 changed files with 2 additions and 2 deletions
|
@ -1148,8 +1148,8 @@ static void RotatePt (int an, fixed_t *x, fixed_t *y, fixed_t startSpotX, fixed_
|
|||
fixed_t tr_x = *x;
|
||||
fixed_t tr_y = *y;
|
||||
|
||||
*x = DMulScale16 (tr_x, finecosine[an], -tr_y, finesine[an])+startSpotX;
|
||||
*y = DMulScale16 (tr_x, finesine[an], tr_y, finecosine[an])+startSpotY;
|
||||
*x = (DMulScale16 (tr_x, finecosine[an], -tr_y, finesine[an]) & 0xFFFFFE00) + startSpotX;
|
||||
*y = (DMulScale16 (tr_x, finesine[an], tr_y, finecosine[an]) & 0xFFFFFE00) + startSpotY;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
Loading…
Reference in a new issue