mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 17:01:03 +00:00
- made sector parameter of updatesectorz an int and deprecated the short version.
This commit is contained in:
parent
13306e900d
commit
d20aa47adf
11 changed files with 34 additions and 25 deletions
|
@ -2263,7 +2263,7 @@ DoPlayerMove(PLAYERp pp)
|
|||
void
|
||||
DoPlayerSectorUpdatePreMove(PLAYERp pp)
|
||||
{
|
||||
short sectnum = pp->cursectnum;
|
||||
int sectnum = pp->cursectnum;
|
||||
|
||||
if (sectnum < 0)
|
||||
return;
|
||||
|
@ -2274,7 +2274,7 @@ DoPlayerSectorUpdatePreMove(PLAYERp pp)
|
|||
if (sectnum < 0)
|
||||
{
|
||||
sectnum = pp->cursectnum;
|
||||
COVERupdatesector(pp->posx, pp->posy, §num);
|
||||
updatesector(pp->posx, pp->posy, §num);
|
||||
}
|
||||
ASSERT(sectnum >= 0);
|
||||
}
|
||||
|
@ -2284,7 +2284,7 @@ DoPlayerSectorUpdatePreMove(PLAYERp pp)
|
|||
if (sectnum < 0)
|
||||
{
|
||||
sectnum = pp->cursectnum;
|
||||
COVERupdatesector(pp->posx, pp->posy, §num);
|
||||
updatesector(pp->posx, pp->posy, §num);
|
||||
}
|
||||
ASSERT(sectnum >= 0);
|
||||
}
|
||||
|
@ -3189,7 +3189,7 @@ void StackedWaterSplash(PLAYERp pp)
|
|||
{
|
||||
if (FAF_ConnectArea(pp->cursectnum))
|
||||
{
|
||||
short sectnum = pp->cursectnum;
|
||||
int sectnum = pp->cursectnum;
|
||||
|
||||
updatesectorz(pp->posx, pp->posy, SPRITEp_BOS(pp->SpriteP), §num);
|
||||
|
||||
|
@ -4097,7 +4097,7 @@ PlayerCanDiveNoWarp(PLAYERp pp)
|
|||
{
|
||||
if (FAF_ConnectArea(pp->cursectnum))
|
||||
{
|
||||
short sectnum = pp->cursectnum;
|
||||
int sectnum = pp->cursectnum;
|
||||
|
||||
updatesectorz(pp->posx, pp->posy, SPRITEp_BOS(pp->SpriteP), §num);
|
||||
|
||||
|
@ -4730,7 +4730,7 @@ DoPlayerDive(PLAYERp pp)
|
|||
{
|
||||
if (pp->posz < sector[pp->cursectnum].ceilingz + Z(10))
|
||||
{
|
||||
short sectnum = pp->cursectnum;
|
||||
int sectnum = pp->cursectnum;
|
||||
|
||||
// check for sector above to see if it is an underwater sector also
|
||||
updatesectorz(pp->posx, pp->posy, sector[pp->cursectnum].ceilingz - Z(8), §num);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue