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:
bors[bot] 2022-06-12 09:19:53 +00:00 committed by GitHub
commit 40dfc06d50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1468,6 +1468,7 @@ void CGameContext::ConRescue(IConsole::IResult *pResult, void *pUserData)
}
pChr->Rescue();
pChr->UnFreeze();
}
void CGameContext::ConTele(IConsole::IResult *pResult, void *pUserData)
@ -1516,6 +1517,7 @@ void CGameContext::ConTele(IConsole::IResult *pResult, void *pUserData)
pSelf->Teleport(pChr, Pos);
pChr->UnFreeze();
pChr->Core()->m_Vel = vec2(0, 0);
}
void CGameContext::ConProtectedKill(IConsole::IResult *pResult, void *pUserData)