mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Propagate build/polymost locals so that polymost_dorotatesprite can correctly draw HUD models on top of polymer.
git-svn-id: https://svn.eduke32.com/eduke32@1224 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
6f945cdb58
commit
46aa3d439a
1 changed files with 12 additions and 3 deletions
|
@ -557,13 +557,22 @@ void polymer_drawrooms(int32_t daposx, int32_t daposy, int32_t da
|
|||
mirrorfrom[0] = -3; // no mirror
|
||||
polymer_displayrooms(dacursectnum);
|
||||
|
||||
viewangle = daang;
|
||||
curmodelviewmatrix = rootmodelviewmatrix;
|
||||
cosglobalang = sintable[(viewangle+512)&2047];
|
||||
singlobalang = sintable[viewangle&2047];
|
||||
|
||||
// build globals used by rotatesprite
|
||||
viewangle = daang;
|
||||
globalang = (daang&2047);
|
||||
cosglobalang = sintable[(globalang+512)&2047];
|
||||
singlobalang = sintable[globalang&2047];
|
||||
cosviewingrangeglobalang = mulscale16(cosglobalang,viewingrange);
|
||||
sinviewingrangeglobalang = mulscale16(singlobalang,viewingrange);
|
||||
|
||||
// polymost globals used by polymost_dorotatesprite
|
||||
gcosang = ((double)cosglobalang)/262144.0;
|
||||
gsinang = ((double)singlobalang)/262144.0;
|
||||
gcosang2 = gcosang*((double)viewingrange)/65536.0;
|
||||
gsinang2 = gsinang*((double)viewingrange)/65536.0;
|
||||
|
||||
if (pr_verbosity >= 3) OSD_Printf("PR : Rooms drawn.\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue