mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 13:50:53 +00:00
Standardised formatting.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1716 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
12bef1befc
commit
1a861e52ed
1 changed files with 13 additions and 6 deletions
|
@ -1334,11 +1334,13 @@ void SV_Floodprot_f (void)
|
|||
|
||||
if (Cmd_Argc() == 1)
|
||||
{
|
||||
if (fp_messages) {
|
||||
if (fp_messages)
|
||||
{
|
||||
Con_TPrintf (STL_FLOODPROTSETTINGS,
|
||||
fp_messages, fp_persecond, fp_secondsdead);
|
||||
return;
|
||||
} else
|
||||
}
|
||||
else
|
||||
Con_TPrintf (STL_FLOODPROTNOTON);
|
||||
}
|
||||
|
||||
|
@ -1352,12 +1354,14 @@ void SV_Floodprot_f (void)
|
|||
arg2 = atoi(Cmd_Argv(2));
|
||||
arg3 = atoi(Cmd_Argv(3));
|
||||
|
||||
if (arg1<=0 || arg2 <= 0 || arg3<=0) {
|
||||
if (arg1<=0 || arg2 <= 0 || arg3<=0)
|
||||
{
|
||||
Con_TPrintf (STL_NONEGATIVEVALUES);
|
||||
return;
|
||||
}
|
||||
|
||||
if (arg1 > 10) {
|
||||
if (arg1 > 10)
|
||||
{
|
||||
Con_TPrintf (STL_TRACK10PLUSSMESSAGES);
|
||||
return;
|
||||
}
|
||||
|
@ -1369,10 +1373,13 @@ void SV_Floodprot_f (void)
|
|||
|
||||
void SV_Floodprotmsg_f (void)
|
||||
{
|
||||
if (Cmd_Argc() == 1) {
|
||||
if (Cmd_Argc() == 1)
|
||||
{
|
||||
Con_TPrintf(STL_FLOODPROTCURRENTMESSAGE, fp_msg);
|
||||
return;
|
||||
} else if (Cmd_Argc() != 2) {
|
||||
}
|
||||
else if (Cmd_Argc() != 2)
|
||||
{
|
||||
Con_TPrintf(STL_FLOODPROTMESSAGESYNTAX);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue