mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Remove extra semicolons
This commit is contained in:
parent
0b6fee0be5
commit
a1db76cdef
|
@ -219,14 +219,14 @@ if gen_network_source:
|
|||
lines += ['{']
|
||||
lines += ['\tif(Type < 0 || Type >= NUM_NETOBJTYPES) return "(out of range)";']
|
||||
lines += ['\treturn ms_apObjNames[Type];']
|
||||
lines += ['};']
|
||||
lines += ['}']
|
||||
lines += ['']
|
||||
|
||||
lines += ['int CNetObjHandler::GetObjSize(int Type)']
|
||||
lines += ['{']
|
||||
lines += ['\tif(Type < 0 || Type >= NUM_NETOBJTYPES) return 0;']
|
||||
lines += ['\treturn ms_aObjSizes[Type];']
|
||||
lines += ['};']
|
||||
lines += ['}']
|
||||
lines += ['']
|
||||
|
||||
|
||||
|
@ -234,7 +234,7 @@ if gen_network_source:
|
|||
lines += ['{']
|
||||
lines += ['\tif(Type < 0 || Type >= NUM_NETMSGTYPES) return "(out of range)";']
|
||||
lines += ['\treturn ms_apMsgNames[Type];']
|
||||
lines += ['};']
|
||||
lines += ['}']
|
||||
lines += ['']
|
||||
|
||||
|
||||
|
@ -278,7 +278,7 @@ if gen_network_source:
|
|||
lines += ['\t']
|
||||
lines += ['\t}']
|
||||
lines += ['\treturn -1;']
|
||||
lines += ['};']
|
||||
lines += ['}']
|
||||
lines += ['']
|
||||
|
||||
#int Validate(int Type, void *pData, int Size);
|
||||
|
@ -323,7 +323,7 @@ if gen_network_source:
|
|||
lines += ['\t\treturn 0;']
|
||||
lines += ['\tm_pMsgFailedOn = "";']
|
||||
lines += ['\treturn m_aMsgData;']
|
||||
lines += ['};']
|
||||
lines += ['}']
|
||||
lines += ['']
|
||||
|
||||
lines += ['bool CNetObjHandler::TeeHistorianRecordMsg(int Type)']
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
*/
|
||||
struct concept_empty
|
||||
{
|
||||
template<typename T> static void check(T &t) { if(0) t.empty(); };
|
||||
template<typename T> static void check(T &t) { if(0) t.empty(); }
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -34,7 +34,7 @@ struct concept_empty
|
|||
*/
|
||||
struct concept_index
|
||||
{
|
||||
template<typename T> static void check(T &t) { if(0) t.index(0); };
|
||||
template<typename T> static void check(T &t) { if(0) t.index(0); }
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -48,7 +48,7 @@ struct concept_index
|
|||
*/
|
||||
struct concept_size
|
||||
{
|
||||
template<typename T> static void check(T &t) { if(0) t.size(); };
|
||||
template<typename T> static void check(T &t) { if(0) t.size(); }
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -62,7 +62,7 @@ struct concept_size
|
|||
*/
|
||||
struct concept_slice
|
||||
{
|
||||
template<typename T> static void check(T &t) { if(0) t.slice(0, 0); };
|
||||
template<typename T> static void check(T &t) { if(0) t.slice(0, 0); }
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -76,7 +76,7 @@ struct concept_slice
|
|||
*/
|
||||
struct concept_sorted
|
||||
{
|
||||
template<typename T> static void check(T &t) { if(0) t.sorted(); };
|
||||
template<typename T> static void check(T &t) { if(0) t.sorted(); }
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -92,7 +92,7 @@ struct concept_sorted
|
|||
*/
|
||||
struct concept_forwarditeration
|
||||
{
|
||||
template<typename T> static void check(T &t) { if(0) { t.front(); t.pop_front(); } };
|
||||
template<typename T> static void check(T &t) { if(0) { t.front(); t.pop_front(); } }
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -108,7 +108,7 @@ struct concept_forwarditeration
|
|||
*/
|
||||
struct concept_backwarditeration
|
||||
{
|
||||
template<typename T> static void check(T &t) { if(0) { t.back(); t.pop_back(); } };
|
||||
template<typename T> static void check(T &t) { if(0) { t.back(); t.pop_back(); } }
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ CGameConsole::CInstance::CInstance(int Type)
|
|||
void CGameConsole::CInstance::Init(CGameConsole *pGameConsole)
|
||||
{
|
||||
m_pGameConsole = pGameConsole;
|
||||
};
|
||||
}
|
||||
|
||||
void CGameConsole::CInstance::ClearBacklog()
|
||||
{
|
||||
|
|
|
@ -141,11 +141,11 @@ MACRO_CONFIG_INT(SvVoteKick, sv_vote_kick, 1, 0, 1, CFGFLAG_SERVER, "Allow votin
|
|||
MACRO_CONFIG_INT(SvVoteKickMin, sv_vote_kick_min, 0, 0, MAX_CLIENTS, CFGFLAG_SERVER, "Minimum number of players required to start a kick vote")
|
||||
MACRO_CONFIG_INT(SvVoteKickBantime, sv_vote_kick_bantime, 5, 0, 1440, CFGFLAG_SERVER, "The time in seconds to ban a player if kicked by vote. 0 makes it just use kick")
|
||||
MACRO_CONFIG_INT(SvJoinVoteDelay, sv_join_vote_delay, 60, 0, 1000, CFGFLAG_SERVER, "Add a delay before recently joined players can vote (in seconds)")
|
||||
MACRO_CONFIG_INT(SvOldTeleportWeapons, sv_old_teleport_weapons, 0, 0, 1, CFGFLAG_SERVER|CFGFLAG_GAME, "Teleporting of all weapons (deprecated, use special entities instead)");
|
||||
MACRO_CONFIG_INT(SvOldTeleportHook, sv_old_teleport_hook, 0, 0, 1, CFGFLAG_SERVER|CFGFLAG_GAME, "Hook through teleporter (deprecated, use special entities instead)");
|
||||
MACRO_CONFIG_INT(SvTeleportHoldHook, sv_teleport_hold_hook, 0, 0, 1, CFGFLAG_SERVER|CFGFLAG_GAME, "Hold hook when teleported");
|
||||
MACRO_CONFIG_INT(SvTeleportLoseWeapons, sv_teleport_lose_weapons, 0, 0, 1, CFGFLAG_SERVER|CFGFLAG_GAME, "Lose weapons when teleported (useful for some race maps)");
|
||||
MACRO_CONFIG_INT(SvDeepfly, sv_deepfly, 1, 0, 1, CFGFLAG_SERVER|CFGFLAG_GAME, "Allow fire non auto weapons when deep");
|
||||
MACRO_CONFIG_INT(SvOldTeleportWeapons, sv_old_teleport_weapons, 0, 0, 1, CFGFLAG_SERVER|CFGFLAG_GAME, "Teleporting of all weapons (deprecated, use special entities instead)")
|
||||
MACRO_CONFIG_INT(SvOldTeleportHook, sv_old_teleport_hook, 0, 0, 1, CFGFLAG_SERVER|CFGFLAG_GAME, "Hook through teleporter (deprecated, use special entities instead)")
|
||||
MACRO_CONFIG_INT(SvTeleportHoldHook, sv_teleport_hold_hook, 0, 0, 1, CFGFLAG_SERVER|CFGFLAG_GAME, "Hold hook when teleported")
|
||||
MACRO_CONFIG_INT(SvTeleportLoseWeapons, sv_teleport_lose_weapons, 0, 0, 1, CFGFLAG_SERVER|CFGFLAG_GAME, "Lose weapons when teleported (useful for some race maps)")
|
||||
MACRO_CONFIG_INT(SvDeepfly, sv_deepfly, 1, 0, 1, CFGFLAG_SERVER|CFGFLAG_GAME, "Allow fire non auto weapons when deep")
|
||||
|
||||
MACRO_CONFIG_INT(SvMapUpdateRate, sv_mapupdaterate, 5, 1, 100, CFGFLAG_SERVER, "64 player id <-> vanilla id players map update rate")
|
||||
|
||||
|
|
Loading…
Reference in a new issue