mirror of
https://github.com/ZDoom/gzdoom-last-svn.git
synced 2025-06-04 03:00:47 +00:00
* Updated to ZDoom r2992:
- Add alpha property to sector_t::splane. Not used yet. - Add an alpha parameter to R_FindPlane. - Fixed: R_FindPlane must do a full visplane comparison for stacked sectors with a non-0 alpha for the sector plane. - Made the alpha used by stacked sectors part of the visplane. This will be needed to fix the merging of stacks with the same displacement but different alpha values. - Replaced all calls to sqrtf with sqrt. Also changed P_RadiusAttack to use doubles for all floating point calculations. - Fixed: When playing non-looping songs GMESong::Read could return without releasing the critical section. git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1074 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
parent
b95ad1be3b
commit
e0becf97db
13 changed files with 78 additions and 47 deletions
|
@ -1460,7 +1460,8 @@ void P_LoadSectors (MapData * map)
|
|||
ss->nextsec = -1; //jff 2/26/98 add fields to support locking out
|
||||
ss->prevsec = -1; // stair retriggering until build completes
|
||||
|
||||
// killough 3/7/98:
|
||||
ss->SetAlpha(sector_t::ceiling, FRACUNIT);
|
||||
ss->SetAlpha(sector_t::ceiling, FRACUNIT);
|
||||
ss->SetXScale(sector_t::floor, FRACUNIT); // [RH] floor and ceiling scaling
|
||||
ss->SetYScale(sector_t::floor, FRACUNIT);
|
||||
ss->SetXScale(sector_t::ceiling, FRACUNIT);
|
||||
|
@ -1873,8 +1874,8 @@ void P_FinishLoadingLineDef(line_t *ld, int alpha)
|
|||
|
||||
ld->frontsector = ld->sidedef[0] != NULL ? ld->sidedef[0]->sector : NULL;
|
||||
ld->backsector = ld->sidedef[1] != NULL ? ld->sidedef[1]->sector : NULL;
|
||||
float dx = FIXED2FLOAT(ld->v2->x - ld->v1->x);
|
||||
float dy = FIXED2FLOAT(ld->v2->y - ld->v1->y);
|
||||
double dx = FIXED2DBL(ld->v2->x - ld->v1->x);
|
||||
double dy = FIXED2DBL(ld->v2->y - ld->v1->y);
|
||||
int linenum = int(ld-lines);
|
||||
|
||||
if (ld->frontsector == NULL)
|
||||
|
@ -1883,7 +1884,7 @@ void P_FinishLoadingLineDef(line_t *ld, int alpha)
|
|||
}
|
||||
|
||||
// [RH] Set some new sidedef properties
|
||||
int len = (int)(sqrtf (dx*dx + dy*dy) + 0.5f);
|
||||
int len = (int)(sqrt (dx*dx + dy*dy) + 0.5f);
|
||||
|
||||
if (ld->sidedef[0] != NULL)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue