mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge #5387
5387: Some qol changes for practice r=def- a=kiw-q Some quality of life changes for practice - Unfreezes when "rescued" - Resets speed when teleporting ## Checklist - [x] Tested the change ingame - [ ] Provided screenshots if it is a visual change - [ ] 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: kiw-q <kiw-q@fedora.email>
This commit is contained in:
commit
40dfc06d50
|
@ -1468,6 +1468,7 @@ void CGameContext::ConRescue(IConsole::IResult *pResult, void *pUserData)
|
||||||
}
|
}
|
||||||
|
|
||||||
pChr->Rescue();
|
pChr->Rescue();
|
||||||
|
pChr->UnFreeze();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGameContext::ConTele(IConsole::IResult *pResult, void *pUserData)
|
void CGameContext::ConTele(IConsole::IResult *pResult, void *pUserData)
|
||||||
|
@ -1516,6 +1517,7 @@ void CGameContext::ConTele(IConsole::IResult *pResult, void *pUserData)
|
||||||
|
|
||||||
pSelf->Teleport(pChr, Pos);
|
pSelf->Teleport(pChr, Pos);
|
||||||
pChr->UnFreeze();
|
pChr->UnFreeze();
|
||||||
|
pChr->Core()->m_Vel = vec2(0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGameContext::ConProtectedKill(IConsole::IResult *pResult, void *pUserData)
|
void CGameContext::ConProtectedKill(IConsole::IResult *pResult, void *pUserData)
|
||||||
|
|
Loading…
Reference in a new issue