mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-12 19:18:20 +00:00
ec75563dad
5109: Only print zone messages when there is one r=heinrich5991 a=def- ``` src/game/server/entities/character.cpp: In member function ‘void CCharacter::SendZoneMsgs()’: src/game/server/entities/character.cpp:2013:78: warning: the address of ‘CGameContext::m_aaZoneLeaveMsg’ will never be NULL [-Waddress] 2013 | if(m_TuneZoneOld >= 0 && GameServer()->m_aaZoneLeaveMsg[m_TuneZoneOld]) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ In file included from src/game/server/entities/character.cpp:7: src/game/server/gamecontext.h:179:14: note: ‘CGameContext::m_aaZoneLeaveMsg’ declared here 179 | char m_aaZoneLeaveMsg[NUM_TUNEZONES][256]; | ^~~~~~~~~~~~~~~~ src/game/server/entities/character.cpp:2028:53: warning: the address of ‘CGameContext::m_aaZoneEnterMsg’ will never be NULL [-Waddress] 2028 | if(GameServer()->m_aaZoneEnterMsg[m_TuneZone]) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ src/game/server/gamecontext.h:178:14: note: ‘CGameContext::m_aaZoneEnterMsg’ declared here 178 | char m_aaZoneEnterMsg[NUM_TUNEZONES][256]; // 0 is used for switching from or to area without tunings | ^~~~~~~~~~~~~~~~ ``` <!-- What is the motivation for the changes of this pull request --> ## Checklist - [ ] 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) 5110: Assert client id in SetSolo r=heinrich5991 a=def- I could not find a way that an invalid client ID is used here, but compiler warns anyway: ``` In member function ‘void CTeamsCore::SetSolo(int, bool)’, inlined from ‘void CCharacter::SetSolo(bool)’ at src/game/client/prediction/entities/character.cpp:29:22, inlined from ‘void CCharacter::HandleTiles(int)’ at src/game/client/prediction/entities/character.cpp:882:10: src/game/teamscore.h:45:34: warning: array subscript [0, 63] is outside array bounds of ‘bool [64]’ [-Warray-bounds] 45 | m_IsSolo[ClientID] = Value; | ~~~~~~~~~~~~~~~~~^ src/game/teamscore.h: In member function ‘void CCharacter::HandleTiles(int)’: src/game/teamscore.h:27:14: note: while referencing ‘CTeamsCore::m_IsSolo’ 27 | bool m_IsSolo[MAX_CLIENTS]; | ^~~~~~~~ ``` <!-- What is the motivation for the changes of this pull request --> ## 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) 5112: Update traditional_chinese.txt r=def- a=Cheeser0613 <!-- What is the motivation for the changes of this pull request --> ## Checklist - [ ] 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) 5115: Update simplified_chinese.txt r=def- a=Cheeser0613 <!-- What is the motivation for the changes of this pull request --> ## Checklist - [ ] 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) 5117: Update tooltip text after changing language r=Jupeyy a=def- Thanks to cheeser0613 for report <!-- What is the motivation for the changes of this pull request --> ## 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: def <dennis@felsin9.de> Co-authored-by: Cheeser0613 <54943099+Cheeser0613@users.noreply.github.com> |
||
---|---|---|
.. | ||
arabic.txt | ||
belarusian.txt | ||
bosnian.txt | ||
brazilian_portuguese.txt | ||
bulgarian.txt | ||
catalan.txt | ||
chuvash.txt | ||
czech.txt | ||
danish.txt | ||
dutch.txt | ||
finnish.txt | ||
french.txt | ||
german.txt | ||
greek.txt | ||
hungarian.txt | ||
index.txt | ||
italian.txt | ||
japanese.txt | ||
korean.txt | ||
kyrgyz.txt | ||
license.txt | ||
norwegian.txt | ||
persian.txt | ||
polish.txt | ||
portuguese.txt | ||
romanian.txt | ||
russian.txt | ||
serbian.txt | ||
serbian_cyrillic.txt | ||
simplified_chinese.txt | ||
slovak.txt | ||
spanish.txt | ||
swedish.txt | ||
traditional_chinese.txt | ||
turkish.txt | ||
ukrainian.txt |