ddnet/src/game
bors[bot] ce9b16d6f6
Merge #5259
5259: reintroduce shotgun bug r=def- a=C0D3D3V

fixes #5258
bug got fixed by the math changes in 68bcd21eff

This fix introduces a hard coded velocity that the player would get like before. (It could be that this has slightly other behaviour, because before the produced NaN values where converted to ints in CCharacterCore::Quantize (so some other logic may be confronted with the NaN values before), but it should most likely not be noticeable because it is fast enough)

We could now make this bug optional, by adding it to our mapbugs, or adding a server setting for it.

## 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
- [x] Considered possible null pointers and out of bounds array indexing
- [x] Changed no physics that affect existing maps
- [x] 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: c0d3d3v <c0d3d3v@mag-keinen-spam.de>
2022-05-27 23:23:37 +00:00
..
client reintroduce shotgun bug 2022-05-28 00:58:33 +02:00
editor Move CMenus::UseMouseButtons to CUI::SetEnabled 2022-05-27 19:43:12 +02:00
server Merge #5259 2022-05-27 23:23:37 +00:00
bezier.cpp Run clang-format 2020-09-26 21:50:15 +02:00
bezier.h clang-format 2022-03-24 17:59:49 +01:00
collision.cpp Fix clang-format 2022-02-15 00:32:04 +01:00
collision.h Rename IsSwitch to GetSwitchType 2021-12-19 12:10:03 +01:00
ddracechat.h Add teleport/tp chat command to teleport yourself 2022-01-31 13:21:04 +01:00
ddracecommands.h put it above left up down 2022-04-19 08:58:26 +02:00
gamecore.cpp revert to SetHookedPlayer in ReadCharacterCore 2022-05-26 07:45:34 +02:00
gamecore.h init m_pWorld with nullptr 2022-05-25 17:42:44 +02:00
layers.cpp Improve code style of InitTilemapSkip 2022-01-19 22:27:59 +01:00
layers.h Remove unnecessary trailing semicolons 2022-01-19 22:44:20 +01:00
localization.cpp Use emplace_back for CString 2022-05-27 00:03:13 +02:00
localization.h Use emplace_back for CString 2022-05-27 00:03:13 +02:00
mapbugs.cpp Add more readability checks 2022-01-22 17:45:25 +01:00
mapbugs.h Remove code for CRC in most places, except where needed for net compat 2020-10-14 17:08:58 +02:00
mapbugs_list.h Revert "Add mapbug "stoppers-passthrough@ddnet.tw"" 2018-08-22 08:33:21 +02:00
mapitems.cpp Implement shields that remove specific weapon (fixes #4572) 2022-04-28 16:49:32 +02:00
mapitems.h Implement shields that remove specific weapon (fixes #4572) 2022-04-28 16:49:32 +02:00
mapitems_ex.cpp Run clang-format 2020-09-26 21:50:15 +02:00
mapitems_ex.h Run clang-format 2020-09-26 21:50:15 +02:00
mapitems_ex_types.h Run clang-format 2020-09-26 21:50:15 +02:00
prng.cpp uint64 -> uint64_t, int64 -> int64_t 2021-06-24 17:19:17 +02:00
prng.h uint64 -> uint64_t, int64 -> int64_t 2021-06-24 17:19:17 +02:00
teamscore.cpp Refactoring of g_Config.m_SvTeam, See #4601 2022-02-19 18:11:15 +01:00
teamscore.h Assert client id in SetSolo 2022-05-14 11:28:01 +02:00
tuning.h Add hammer_hit_fire_delay tune 2021-05-01 16:36:12 +02:00
variables.h Merge branch 'master' into New_HUD 2022-05-10 19:03:09 +02:00
version.h Version 16.1 2022-05-20 01:26:17 +02:00
voting.h Run clang-format 2020-09-26 21:50:15 +02:00