mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-21 01:54:19 +00:00
f46c9f9079
According to cppcheck's `duplicateConditionalAssign` error: ``` src\game\client\gameclient.cpp:1439:39: style: The statement 'if (m_aFlagDropTick[TEAM_RED]!=0) m_aFlagDropTick[TEAM_RED]=0' is logically equivalent to 'm_aFlagDropTick[TEAM_RED]=0'. [duplicateConditionalAssign] else if(m_aFlagDropTick[TEAM_RED] != 0) ^ src\game\client\gameclient.cpp:1440:32: note: Assignment 'm_aFlagDropTick[TEAM_RED]=0' m_aFlagDropTick[TEAM_RED] = 0; ^ src\game\client\gameclient.cpp:1439:39: note: Condition 'm_aFlagDropTick[TEAM_RED]!=0' is redundant else if(m_aFlagDropTick[TEAM_RED] != 0) ^ src\game\client\gameclient.cpp:1446:40: style: The statement 'if (m_aFlagDropTick[TEAM_BLUE]!=0) m_aFlagDropTick[TEAM_BLUE]=0' is logically equivalent to 'm_aFlagDropTick[TEAM_BLUE]=0'. [duplicateConditionalAssign] else if(m_aFlagDropTick[TEAM_BLUE] != 0) ^ src\game\client\gameclient.cpp:1447:33: note: Assignment 'm_aFlagDropTick[TEAM_BLUE]=0' m_aFlagDropTick[TEAM_BLUE] = 0; ^ src\game\client\gameclient.cpp:1446:40: note: Condition 'm_aFlagDropTick[TEAM_BLUE]!=0' is redundant else if(m_aFlagDropTick[TEAM_BLUE] != 0) ^ ``` |
||
---|---|---|
.. | ||
client | ||
editor | ||
server | ||
collision.cpp | ||
collision.h | ||
ddracechat.h | ||
ddracecommands.h | ||
gamecore.cpp | ||
gamecore.h | ||
layers.cpp | ||
layers.h | ||
localization.cpp | ||
localization.h | ||
mapbugs.cpp | ||
mapbugs.h | ||
mapbugs_list.h | ||
mapitems.cpp | ||
mapitems.h | ||
mapitems_ex.cpp | ||
mapitems_ex.h | ||
mapitems_ex_types.h | ||
prng.cpp | ||
prng.h | ||
teamscore.cpp | ||
teamscore.h | ||
tuning.h | ||
variables.h | ||
version.h | ||
voting.h |