I like this timing more.

This commit is contained in:
toasterbabe 2016-10-12 23:55:16 +01:00
parent a36912baef
commit 4997564d30
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@
#define mariomode (maptol & TOL_MARIO)
#define shortmario(player) ((player && mariomode && !player->powers[pw_shield] && !objectplacing) ? 1 : 0)
#define MARIOFLASHINGTICS 21
#define MARIOFLASHINGTICS TICRATE/2
#define P_GetPlayerHeight(player) (FixedMul(player->height, player->mo->scale) >> shortmario(player))
#define P_GetPlayerSpinHeight(player) (FixedMul(player->spinheight, player->mo->scale) >> shortmario(player))

View File

@ -4066,7 +4066,7 @@ static void P_PlayerMobjThinker(mobj_t *mobj)
if (!mobj->player->powers[pw_nocontrol]++)
mobj->player->powers[pw_nocontrol]++;
if (!((--mobj->player->powers[pw_marioflashing] - 1) % 5))
if (!(--mobj->player->powers[pw_marioflashing] % 4))
{
UINT16 shieldswitch = mobj->player->powers[pw_shield];
mobj->player->powers[pw_shield] = mobj->movecount;