mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Merge #3358
3358: Fix prediction with global collision off tiles and tunings (fix #2510) r=def- a=trml Tested it now, and it seems that only the hook and collision off tiles were affected by this. ## Checklist - [x] Tested the change ingame - [ ] Provided screenshots if it is a visual change - [x] Tested in combination with possibly related configuration options - [ ] Written a unit test if it works standalone, system.c especially - [ ] Considered possible null pointers and out of bounds array indexing - [ ] Changed no physics that affect existing maps - [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional) Co-authored-by: trml <trml@users.noreply.github.com>
This commit is contained in:
commit
80a65c6326
|
@ -1251,9 +1251,9 @@ void CCharacter::Snap(int SnappingClient)
|
||||||
pDDNetCharacter->m_Flags |= CHARACTERFLAG_SUPER;
|
pDDNetCharacter->m_Flags |= CHARACTERFLAG_SUPER;
|
||||||
if(m_EndlessHook)
|
if(m_EndlessHook)
|
||||||
pDDNetCharacter->m_Flags |= CHARACTERFLAG_ENDLESS_HOOK;
|
pDDNetCharacter->m_Flags |= CHARACTERFLAG_ENDLESS_HOOK;
|
||||||
if(!m_Core.m_Collision)
|
if(!m_Core.m_Collision || !GameServer()->Tuning()->m_PlayerCollision)
|
||||||
pDDNetCharacter->m_Flags |= CHARACTERFLAG_NO_COLLISION;
|
pDDNetCharacter->m_Flags |= CHARACTERFLAG_NO_COLLISION;
|
||||||
if(!m_Core.m_Hook)
|
if(!m_Core.m_Hook || !GameServer()->Tuning()->m_PlayerHooking)
|
||||||
pDDNetCharacter->m_Flags |= CHARACTERFLAG_NO_HOOK;
|
pDDNetCharacter->m_Flags |= CHARACTERFLAG_NO_HOOK;
|
||||||
if(m_SuperJump)
|
if(m_SuperJump)
|
||||||
pDDNetCharacter->m_Flags |= CHARACTERFLAG_ENDLESS_JUMP;
|
pDDNetCharacter->m_Flags |= CHARACTERFLAG_ENDLESS_JUMP;
|
||||||
|
|
Loading…
Reference in a new issue