ddnet/src/game
bors[bot] e2cb24b7d9
Merge #3669
3669: Local ranking info viewable in-game r=def- a=houseme-kyle

The feature is based on the issue below:
https://github.com/ddnet/ddnet/issues/3655

The main concern was the impact it would have if we had to double our ranking/point commands to support it. I took the feedback into account and combined the info into one command. The PR is in draft as I don't want to implement it for the remaining commands before getting thoughts on the approach taken.

**Feature**
Display local stats alongside global while using the same commands

**Implementation**
- /rank, /top5 etc to display their local position alongside global. 
- Top 5 changed to top 3 due to space limitations
- Message limit increased by 1
- Don't show "requested by" when the request was made by the same individual

**Reason for feature**
- Foster growth in the smaller communities as they compete amongst each other in their own leaderboard
- The names become more relevant to all communities as they can better relate to the names displayed 

**TODO**
~- Tested with production sqlite data but not MySQL storage~
~- Expand concept to other relevant ranking commands~

(Example of NovaShock who is the top player in South Africa)
![image](https://user-images.githubusercontent.com/25198124/109824890-f03a4080-7c41-11eb-84dc-ad319cb98f1e.png)
![image](https://user-images.githubusercontent.com/25198124/109824910-f6302180-7c41-11eb-9013-f3254c08f068.png)

## Checklist

- [x] Tested the change ingame
- [x] Provided screenshots if it is a visual change
- [x] 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: houseme-kyle <kyle@houseme.co.za>
Co-authored-by: Kyle Bradley <kyle@house.me>
Co-authored-by: = <=>
2021-03-08 22:51:05 +00:00
..
client Remove 45° aim too 2021-03-07 23:12:57 +01:00
editor std::max -> maximum 2021-03-07 11:14:37 +01:00
server Formatted player.cpp using ClangFormat 2021-03-08 15:56:20 +02:00
bezier.cpp Run clang-format 2020-09-26 21:50:15 +02:00
bezier.h Run clang-format 2020-09-26 21:50:15 +02:00
collision.cpp Adopt upstream refactoring: Mark several functions as 'const' 2021-02-23 18:26:16 +03:00
collision.h Adopt upstream refactoring: Mark several functions as 'const' 2021-02-23 18:26:16 +03:00
ddracechat.h PR feedback 2021-03-08 00:41:48 +02:00
ddracecommands.h Add (un)endless_hook command 2020-12-26 23:09:38 +01:00
gamecore.cpp Adopt upstream refactoring: Mark several functions as 'const' 2021-02-23 18:26:16 +03:00
gamecore.h Adopt upstream refactoring: Mark several functions as 'const' 2021-02-23 18:26:16 +03:00
layers.cpp Run clang-format 2020-09-26 21:50:15 +02:00
layers.h Run clang-format 2020-09-26 21:50:15 +02:00
localization.cpp Run clang-format 2020-09-26 21:50:15 +02:00
localization.h Run clang-format 2020-09-26 21:50:15 +02:00
mapbugs.cpp Fix variable names manually 2020-11-02 22:40:40 +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 Merge #3586 #3587 2021-02-01 20:49:35 +00:00
mapitems.h SUBSTRACT -> SUBTRACT 2021-02-01 14:55:26 +01: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 Run clang-format 2020-09-26 21:50:15 +02:00
prng.h Use check_header_guards script 2020-09-11 00:03:31 +02:00
teamscore.cpp Run clang-format 2020-09-26 21:50:15 +02:00
teamscore.h Fix out of bounds access in GetSolo 2020-10-18 16:52:29 +02:00
tuning.h Run clang-format 2020-09-26 21:50:15 +02:00
variables.h HTTP Map Download: Time out faster 2021-01-26 00:19:19 +01:00
version.h Version 15.3.2 2021-02-20 23:15:26 +01:00
voting.h Run clang-format 2020-09-26 21:50:15 +02:00