mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-17 10:11:12 +00:00
Balloon error fix, and papersprite fix
This commit is contained in:
parent
54b8e25713
commit
e7de9502ba
2 changed files with 7 additions and 7 deletions
12
src/p_mobj.c
12
src/p_mobj.c
|
@ -6631,7 +6631,7 @@ void P_MobjThinker(mobj_t *mobj)
|
|||
if (mobj->target->flags2 & MF2_DONTDRAW)
|
||||
mobj->flags2 |= MF2_DONTDRAW;
|
||||
else
|
||||
mobj->flags2 &= !MF2_DONTDRAW;
|
||||
mobj->flags2 &= ~MF2_DONTDRAW;
|
||||
|
||||
if (mobj->target->eflags & MFE_VERTICALFLIP)
|
||||
HEIGHT += 4*FRACUNIT;
|
||||
|
@ -9230,7 +9230,7 @@ void P_SpawnPlayer(INT32 playernum)
|
|||
if (mobj->flags2 & MF2_DONTDRAW)
|
||||
mo->flags2 |= MF2_DONTDRAW;
|
||||
else
|
||||
mo->flags2 &= !MF2_DONTDRAW;
|
||||
mo->flags2 &= ~MF2_DONTDRAW;
|
||||
|
||||
if (p->kartstuff[k_balloon] & 2)
|
||||
{
|
||||
|
@ -9242,7 +9242,7 @@ void P_SpawnPlayer(INT32 playernum)
|
|||
if (mobj->flags2 & MF2_DONTDRAW)
|
||||
mo2->flags2 |= MF2_DONTDRAW;
|
||||
else
|
||||
mo2->flags2 &= !MF2_DONTDRAW;
|
||||
mo2->flags2 &= ~MF2_DONTDRAW;
|
||||
}
|
||||
|
||||
if (p->kartstuff[k_balloon] & 4)
|
||||
|
@ -9255,7 +9255,7 @@ void P_SpawnPlayer(INT32 playernum)
|
|||
if (mobj->flags2 & MF2_DONTDRAW)
|
||||
mo3->flags2 |= MF2_DONTDRAW;
|
||||
else
|
||||
mo3->flags2 &= !MF2_DONTDRAW;
|
||||
mo3->flags2 &= ~MF2_DONTDRAW;
|
||||
}
|
||||
|
||||
if (p->kartstuff[k_balloon] & 8)
|
||||
|
@ -9268,7 +9268,7 @@ void P_SpawnPlayer(INT32 playernum)
|
|||
if (mobj->flags2 & MF2_DONTDRAW)
|
||||
mo4->flags2 |= MF2_DONTDRAW;
|
||||
else
|
||||
mo4->flags2 &= !MF2_DONTDRAW;
|
||||
mo4->flags2 &= ~MF2_DONTDRAW;
|
||||
}
|
||||
|
||||
if (p->kartstuff[k_balloon] & 16)
|
||||
|
@ -9281,7 +9281,7 @@ void P_SpawnPlayer(INT32 playernum)
|
|||
if (mobj->flags2 & MF2_DONTDRAW)
|
||||
mo5->flags2 |= MF2_DONTDRAW;
|
||||
else
|
||||
mo5->flags2 &= !MF2_DONTDRAW;
|
||||
mo5->flags2 &= ~MF2_DONTDRAW;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1249,7 +1249,7 @@ static void R_ProjectSprite(mobj_t *thing)
|
|||
|
||||
offset2 = FixedMul(spritecachedinfo[lump].width, this_scale);
|
||||
tx += FixedMul(offset2, ang_scale);
|
||||
x2 = ((centerxfrac + FixedMul (tx,xscale)) >>FRACBITS) - 1;
|
||||
x2 = ((centerxfrac + FixedMul (tx,xscale)) >> FRACBITS) - (papersprite ? 2 : 1);
|
||||
|
||||
// off the left side
|
||||
if (x2 < 0)
|
||||
|
|
Loading…
Reference in a new issue