r3805 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Thu Jul 10 02:04:04 EDT 2008
Author: div0
Date: 2008-07-10 02:04:04 -0400 (Thu, 10 Jul 2008)
New Revision: 3805
Modified:
trunk/data/qcsrc/server/ctf.qc
trunk/data/qcsrc/server/g_decors.qc
trunk/data/qcsrc/server/g_world.qc
trunk/data/qcsrc/server/vote.qc
Log:
silence all fteqcc -Wall -Wno-mundane warnings (that is, all but "unreferenced function")
Modified: trunk/data/qcsrc/server/ctf.qc
===================================================================
--- trunk/data/qcsrc/server/ctf.qc 2008-07-10 05:48:12 UTC (rev 3804)
+++ trunk/data/qcsrc/server/ctf.qc 2008-07-10 06:04:04 UTC (rev 3805)
@@ -311,11 +311,11 @@
bprint(other.netname, "^7 captured the ", other.flagcarried.netname, " in ", s, ", failing to break ", strcat(h0, " record of ", s0, " seconds\n"));
}
- other.captures++;
+ other.captures += 1;
if(other.team == COLOR_TEAM1)
- caps_team1++;
+ ++caps_team1;
else if(other.team == COLOR_TEAM2)
- caps_team2++;
+ ++caps_team2;
else
print("Unknown team captured the flag!\n");
ctf_UpdateCaptures(MSG_BROADCAST);
@@ -389,7 +389,7 @@
else
UpdateFrags(other, cvar("g_ctf_flagscore_return_rogue"));
}
- other.returns++;
+ other.returns += 1;
ctf_UpdateReturns(MSG_BROADCAST);
LogCTF("return", self.team, other);
sound (self, CHAN_AUTO, self.noise1, 1, ATTN_NONE);
@@ -774,12 +774,12 @@
{
if(flag.team == COLOR_TEAM1)
{
- if(redflags-- == 0) // happens exactly once
+ if(--redflags == -1) // happens exactly once (redflags is in 0..count-1, and will --'ed count times)
ctf_setstatus2(flag, IT_RED_FLAG_TAKEN);
}
else if(flag.team == COLOR_TEAM2)
{
- if(blueflags-- == 0) // happens exactly once
+ if(--blueflags == -1) // happens exactly once
ctf_setstatus2(flag, IT_BLUE_FLAG_TAKEN);
}
}
@@ -803,7 +803,7 @@
void(entity e, float st) ctf_setstate =
{
e.ctf_state = st;
- e.version ++;
+ ++e.version;
};
void(float cteam) ctf_new_commander =
Modified: trunk/data/qcsrc/server/g_decors.qc
===================================================================
--- trunk/data/qcsrc/server/g_decors.qc 2008-07-10 05:48:12 UTC (rev 3804)
+++ trunk/data/qcsrc/server/g_decors.qc 2008-07-10 06:04:04 UTC (rev 3805)
@@ -176,7 +176,7 @@
entity newdecor()
{
local entity e;
- numdecors++;
+ ++numdecors;
e = spawn();
e.classname = "decor";
return e;
@@ -184,7 +184,7 @@
void removedecor(entity e)
{
- numdecors--;
+ --numdecors;
remove(e);
};
Modified: trunk/data/qcsrc/server/g_world.qc
===================================================================
--- trunk/data/qcsrc/server/g_world.qc 2008-07-10 05:48:12 UTC (rev 3804)
+++ trunk/data/qcsrc/server/g_world.qc 2008-07-10 06:04:04 UTC (rev 3805)
@@ -267,7 +267,7 @@
maxclients = 0;
while(head)
{
- maxclients++;
+ ++maxclients;
head = nextent(head);
}
Modified: trunk/data/qcsrc/server/vote.qc
===================================================================
--- trunk/data/qcsrc/server/vote.qc 2008-07-10 05:48:12 UTC (rev 3804)
+++ trunk/data/qcsrc/server/vote.qc 2008-07-10 06:04:04 UTC (rev 3805)
@@ -402,7 +402,7 @@
vote = argv(2);
while(argv(index) != "") {
vote = strcat(vote, " ", argv(index));
- index++;
+ ++index;
}
// necessary for some of the string operations
@@ -419,7 +419,7 @@
if(votecommand == argv(index)) {
return TRUE;
}
- index++;
+ ++index;
}
return FALSE;
}
@@ -551,23 +551,23 @@
FOR_EACH_REALCLIENT(player)
{
if(player.vote_vote == -1) {
- nocount++;
+ ++nocount;
} else if(player.vote_vote == 1) {
- yescount++;
+ ++yescount;
} else if(player.vote_vote == -2) {
- abstaincount++;
+ ++abstaincount;
}
- playercount++;
+ ++playercount;
//do the same for real players
if(player.classname == "player") {
if(player.vote_vote == -1) {
- realplayernocount++;
+ ++realplayernocount;
} else if(player.vote_vote == 1) {
- realplayeryescount++;
+ ++realplayeryescount;
} else if(player.vote_vote == -2) {
- realplayerabstaincount++;
+ ++realplayerabstaincount;
}
- realplayercount++;
+ ++realplayercount;
}
}
More information about the nexuiz-commits
mailing list