ddnet/src
bors[bot] d815fdfa03
Merge #5023
5023: fix WalkTime for negativ positions r=def- a=C0D3D3V

I am not sure if there is a more elegant solution, the problem is that fmod in cpp does not return a positive value. maybe we can just use a mod function that always returns positive values.

## 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-04-26 08:49:02 +00:00
..
android Add Android build scripts 2021-08-24 12:18:20 +02:00
antibot Merge pull request #3961 from fokkonaut/pr-antibot 2021-12-19 19:33:56 +01:00
base Rename ActCur, some "actual" → "current" 2022-04-23 00:42:37 +02:00
engine Merge #5021 2022-04-25 16:32:28 +00:00
game fix WalkTime for negativ positions 2022-04-26 09:58:31 +02:00
macos OSX -> macOS 2021-02-12 13:41:41 +01:00
macoslaunch Better fixes 2022-01-26 11:01:11 +01:00
mastersrv clang-format 2022-04-03 01:12:27 +02:00
steam Add modernize-deprecated-headers 2022-02-15 00:22:52 +01:00
test Use std::size instead of sizeof(a) / sizeof(a[0]) 2022-03-30 18:55:04 +02:00
tools Use std::size instead of sizeof(a) / sizeof(a[0]) 2022-03-30 18:55:04 +02:00
twping Remove unused Flags argument in network code 2022-03-04 19:33:06 +01:00