Remove extra semicolons

This commit is contained in:
yangfl 2018-11-18 14:25:15 +08:00
parent 0b6fee0be5
commit a1db76cdef
4 changed files with 19 additions and 19 deletions

View file

@ -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)']

View file

@ -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(); } }
};

View file

@ -59,7 +59,7 @@ CGameConsole::CInstance::CInstance(int Type)
void CGameConsole::CInstance::Init(CGameConsole *pGameConsole)
{
m_pGameConsole = pGameConsole;
};
}
void CGameConsole::CInstance::ClearBacklog()
{

View file

@ -118,7 +118,7 @@ MACRO_CONFIG_INT(ClDummyControl, cl_dummy_control, 0, 0, 1, CFGFLAG_CLIENT, "Whe
MACRO_CONFIG_INT(ClDummyJump, cl_dummy_jump, 0, 0, 1, CFGFLAG_CLIENT, "Whether dummy is jumping")
MACRO_CONFIG_INT(ClDummyFire, cl_dummy_fire, 0, 0, 1, CFGFLAG_CLIENT, "Whether dummy is fire")
MACRO_CONFIG_INT(ClDummyHook, cl_dummy_hook, 0, 0, 1, CFGFLAG_CLIENT, "Whether dummy is hook")
// curl http download
MACRO_CONFIG_INT(ClHTTPConnectTimeoutMs, cl_http_connect_timeout_ms, 2000, 0, 100000, CFGFLAG_CLIENT|CFGFLAG_SAVE, "HTTP downloads: timeout for the connect phase in milliseconds (0 to disable)")
MACRO_CONFIG_INT(ClHTTPLowSpeedLimit, cl_http_low_speed_limit, 500, 0, 100000, CFGFLAG_CLIENT|CFGFLAG_SAVE, "HTTP downloads: Set low speed limit in bytes per second (0 to disable)")
@ -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")