mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-12 15:44:24 +00:00
that works better
This commit is contained in:
parent
bbc3173629
commit
873ef3fea8
1 changed files with 11 additions and 2 deletions
|
@ -124,9 +124,18 @@ void P_SetPsprite (player_t *player, int position, FState *state, bool nofunctio
|
||||||
|
|
||||||
|
|
||||||
if (sv_fastweapons >= 2 && position == ps_weapon)
|
if (sv_fastweapons >= 2 && position == ps_weapon)
|
||||||
psp->tics = state->ActionFunc == NULL ? 0 : !(state->GetTics() == 0);
|
{
|
||||||
|
if(state->ActionFunc == NULL)
|
||||||
|
{
|
||||||
|
psp->tics = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
psp->tics = (state->GetTics() != 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (sv_fastweapons)
|
else if (sv_fastweapons)
|
||||||
psp->tics = !(state->GetTics() == 0); // great for producing decals :)
|
psp->tics = (state->GetTics() != 0); // great for producing decals :)
|
||||||
else
|
else
|
||||||
psp->tics = state->GetTics(); // could be 0
|
psp->tics = state->GetTics(); // could be 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue