mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 12:30:40 +00:00
- SW: Tidy up use of cl_nomeleeblur
use within panel code.
This commit is contained in:
parent
e491d15ff9
commit
5d07c768b2
1 changed files with 12 additions and 32 deletions
|
@ -789,6 +789,8 @@ SwordBlur(PANEL_SPRITEp psp)
|
|||
void
|
||||
SpawnSwordBlur(PANEL_SPRITEp psp)
|
||||
{
|
||||
if (cl_nomeleeblur) return;
|
||||
|
||||
PANEL_SPRITEp nsp;
|
||||
//PICITEMp pip;
|
||||
|
||||
|
@ -1029,11 +1031,8 @@ pSwordPresent(PANEL_SPRITEp psp)
|
|||
|
||||
void
|
||||
pSwordSlide(PANEL_SPRITEp psp)
|
||||
{
|
||||
if (!cl_nomeleeblur)
|
||||
{
|
||||
SpawnSwordBlur(psp);
|
||||
}
|
||||
|
||||
psp->backupcoords();
|
||||
|
||||
|
@ -1045,11 +1044,8 @@ pSwordSlide(PANEL_SPRITEp psp)
|
|||
|
||||
void
|
||||
pSwordSlideDown(PANEL_SPRITEp psp)
|
||||
{
|
||||
if (!cl_nomeleeblur)
|
||||
{
|
||||
SpawnSwordBlur(psp);
|
||||
}
|
||||
|
||||
auto ang = SwordAng + psp->ang + psp->PlayerP->SwordAng;
|
||||
|
||||
|
@ -1095,11 +1091,8 @@ pSwordSlideDown(PANEL_SPRITEp psp)
|
|||
|
||||
void
|
||||
pSwordSlideR(PANEL_SPRITEp psp)
|
||||
{
|
||||
if (!cl_nomeleeblur)
|
||||
{
|
||||
SpawnSwordBlur(psp);
|
||||
}
|
||||
|
||||
psp->backupcoords();
|
||||
|
||||
|
@ -1111,11 +1104,8 @@ pSwordSlideR(PANEL_SPRITEp psp)
|
|||
|
||||
void
|
||||
pSwordSlideDownR(PANEL_SPRITEp psp)
|
||||
{
|
||||
if (!cl_nomeleeblur)
|
||||
{
|
||||
SpawnSwordBlur(psp);
|
||||
}
|
||||
|
||||
auto ang = SwordAng + psp->ang - psp->PlayerP->SwordAng;
|
||||
|
||||
|
@ -5730,6 +5720,8 @@ FistBlur(PANEL_SPRITEp psp)
|
|||
void
|
||||
SpawnFistBlur(PANEL_SPRITEp psp)
|
||||
{
|
||||
if (cl_nomeleeblur) return;
|
||||
|
||||
PANEL_SPRITEp nsp;
|
||||
//PICITEMp pip;
|
||||
|
||||
|
@ -5990,11 +5982,8 @@ pFistPresent(PANEL_SPRITEp psp)
|
|||
|
||||
void
|
||||
pFistSlide(PANEL_SPRITEp psp)
|
||||
{
|
||||
if (!cl_nomeleeblur)
|
||||
{
|
||||
SpawnFistBlur(psp);
|
||||
}
|
||||
|
||||
//psp->backupx();
|
||||
psp->backupy();
|
||||
|
@ -6007,11 +5996,8 @@ pFistSlide(PANEL_SPRITEp psp)
|
|||
|
||||
void
|
||||
pFistSlideDown(PANEL_SPRITEp psp)
|
||||
{
|
||||
if (!cl_nomeleeblur)
|
||||
{
|
||||
SpawnFistBlur(psp);
|
||||
}
|
||||
|
||||
short vel = 3500;
|
||||
auto ang = FistAng + psp->ang + psp->PlayerP->FistAng;
|
||||
|
@ -6093,11 +6079,8 @@ pFistSlideDown(PANEL_SPRITEp psp)
|
|||
|
||||
void
|
||||
pFistSlideR(PANEL_SPRITEp psp)
|
||||
{
|
||||
if (!cl_nomeleeblur)
|
||||
{
|
||||
SpawnFistBlur(psp);
|
||||
}
|
||||
|
||||
//psp->backupx();
|
||||
psp->backupy();
|
||||
|
@ -6110,11 +6093,8 @@ pFistSlideR(PANEL_SPRITEp psp)
|
|||
|
||||
void
|
||||
pFistSlideDownR(PANEL_SPRITEp psp)
|
||||
{
|
||||
if (!cl_nomeleeblur)
|
||||
{
|
||||
SpawnFistBlur(psp);
|
||||
}
|
||||
|
||||
short vel = 3500;
|
||||
auto ang = FistAng + psp->ang + psp->PlayerP->FistAng;
|
||||
|
|
Loading…
Reference in a new issue