ddnet/src/game/server/entities
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
..
character.cpp fix windows server crash on client spawn 2022-05-27 19:21:43 +02:00
character.h Keep last input on respawn when chatting or pausing 2022-05-21 21:37:17 +02:00
door.cpp use TEAM_SPECTATORS and SPEC_FREEVIEW instead of -1 2022-03-07 22:16:28 +01:00
door.h Mark virtual function as override using a script: 2022-05-17 23:47:32 +02:00
dragger.cpp disable dragger beams soon, not only every 150ms 2022-05-26 19:49:51 +02:00
dragger.h fix server options in comments 2022-05-22 21:59:49 +02:00
dragger_beam.cpp disable dragger beams soon, not only every 150ms 2022-05-26 19:49:51 +02:00
dragger_beam.h disable dragger beams soon, not only every 150ms 2022-05-26 19:49:51 +02:00
flag.cpp Run clang-format 2020-09-26 21:50:15 +02:00
flag.h Merge branch 'master' of git://github.com/teeworlds/teeworlds into DDRace 2012-04-12 02:09:31 +02:00
gun.cpp fix server options in comments 2022-05-22 21:59:49 +02:00
gun.h fix server options in comments 2022-05-22 21:59:49 +02:00
laser.cpp reintroduce shotgun bug 2022-05-28 00:58:33 +02:00
laser.h Always destroy bullets/lasers on kill when in practice team (fixes #4694) 2022-02-11 16:58:04 +01:00
light.cpp use TEAM_SPECTATORS and SPEC_FREEVIEW instead of -1 2022-03-07 22:16:28 +01:00
light.h Mark virtual function as override using a script: 2022-05-17 23:47:32 +02:00
pickup.cpp Implement shields that remove specific weapon (fixes #4572) 2022-04-28 16:49:32 +02:00
pickup.h Mark virtual function as override using a script: 2022-05-17 23:47:32 +02:00
plasma.cpp Crash fix (fixes #5217) 2022-05-25 16:28:00 +02:00
plasma.h revert to double explotion plasma bullets if the bullet hits obstacle 2022-05-22 21:59:51 +02:00
projectile.cpp use TeamMask() instead of Teams()->TeamMask(...) in projectile.cpp and laser.cpp 2022-05-22 21:59:47 +02:00
projectile.h Always destroy bullets/lasers on kill when in practice team (fixes #4694) 2022-02-11 16:58:04 +01:00