mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 20:31:30 +00:00
Redo all changes I ended up losing trying to undo the mess I made.
Also, fix the issue pointed out by Alam.
This commit is contained in:
parent
ea7abe7c44
commit
1af18c7013
3 changed files with 6 additions and 5 deletions
|
@ -2857,9 +2857,10 @@ static void HWR_Subsector(size_t num)
|
|||
#ifdef DOPLANES
|
||||
// -------------------- WATER IN DEV. TEST ------------------------
|
||||
//dck hack : use abs(tag) for waterheight
|
||||
if (gr_frontsector->tag < 0)
|
||||
//ilag : Since we changed to UINT16 for sector tags, simulate INT16
|
||||
if (gr_frontsector->tag > 32767)
|
||||
{
|
||||
wh = ((-gr_frontsector->tag) <<FRACBITS) + (FRACUNIT/2);
|
||||
wh = ((65535-gr_frontsector->tag) <<FRACBITS) + (FRACUNIT/2);
|
||||
if (wh > gr_frontsector->floorheight &&
|
||||
wh < gr_frontsector->ceilingheight)
|
||||
{
|
||||
|
|
|
@ -3670,7 +3670,7 @@ static void P_Boss3Thinker(mobj_t *mobj)
|
|||
// Move Boss4's sectors by delta.
|
||||
static boolean P_Boss4MoveCage(fixed_t delta)
|
||||
{
|
||||
const INT16 tag = -2;
|
||||
const UINT16 tag = 65534;
|
||||
INT32 snum;
|
||||
sector_t *sector;
|
||||
for (snum = sectors[tag%numsectors].firsttag; snum != -1; snum = sector->nexttag)
|
||||
|
@ -3719,7 +3719,7 @@ static void P_Boss4PinchSpikeballs(mobj_t *mobj, angle_t angle, fixed_t fz)
|
|||
// Destroy cage FOFs.
|
||||
static void P_Boss4DestroyCage(void)
|
||||
{
|
||||
const INT16 tag = -2;
|
||||
const UINT16 tag = 65534;
|
||||
INT32 snum, next;
|
||||
size_t a;
|
||||
sector_t *sector, *rsec;
|
||||
|
|
|
@ -242,7 +242,7 @@ typedef struct sector_s
|
|||
INT32 ceilingpic;
|
||||
INT16 lightlevel;
|
||||
INT16 special;
|
||||
INT16 tag;
|
||||
UINT16 tag;
|
||||
INT32 nexttag, firsttag; // for fast tag searches
|
||||
|
||||
// origin for any sounds played by the sector
|
||||
|
|
Loading…
Reference in a new issue