mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-04-19 16:51:53 +00:00
Merge branch 'moveslidingafter' into 'next'
Remove `PF_SLIDING` AFTER Lua_PlayerThink See merge request STJr/SRB2!2656
This commit is contained in:
commit
4eefbeddd3
1 changed files with 6 additions and 2 deletions
|
@ -12548,8 +12548,6 @@ void P_PlayerThink(player_t *player)
|
|||
else
|
||||
player->mo->flags2 &= ~MF2_DONTDRAW;
|
||||
|
||||
player->pflags &= ~PF_SLIDING;
|
||||
|
||||
#define dashmode player->dashmode
|
||||
// Dash mode - thanks be to VelocitOni
|
||||
if ((player->charflags & SF_DASHMODE) && !player->gotflag && !player->powers[pw_carry] && !player->exiting && !(maptol & TOL_NIGHTS) && !metalrecording) // woo, dashmode! no nights tho.
|
||||
|
@ -12626,6 +12624,12 @@ void P_PlayerThink(player_t *player)
|
|||
|
||||
LUA_HookPlayer(player, HOOK(PlayerThink));
|
||||
|
||||
// Remove PF_SLIDING *AFTER* PlayerThink hooks, because
|
||||
// no one wants to add a ThinkFrame just for detecting this (i'm also very lazy)
|
||||
// This is such a trivial change, I doubt it'll change anything major
|
||||
// -luigi budd
|
||||
player->pflags &= ~PF_SLIDING;
|
||||
|
||||
/*
|
||||
// Colormap verification
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue