still reverting

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5096 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-05-28 21:30:51 +00:00
parent bc384939b3
commit e8085af9bc
4 changed files with 24 additions and 26 deletions
+5 -7
View File
@@ -123,7 +123,7 @@ struct clientstate : playerstate
projectilestate<8> grenades;
int akimbomillis;
bool scoped;
int flagscore, frags, teamkills, deaths, shotdamage, damage, points;
int flagscore, frags, teamkills, deaths, shotdamage, damage;
clientstate() : state(CS_DEAD) {}
@@ -146,7 +146,7 @@ struct clientstate : playerstate
grenades.reset();
akimbomillis = 0;
scoped = false;
flagscore = frags = teamkills = deaths = shotdamage = damage = points = 0;
flagscore = frags = teamkills = deaths = shotdamage = damage = 0;
respawn();
}
@@ -167,7 +167,7 @@ struct savedscore
{
string name;
uint ip;
int frags, flagscore, deaths, teamkills, shotdamage, damage, team, points;
int frags, flagscore, deaths, teamkills, shotdamage, damage, team;
bool valid;
void save(clientstate &cs, int t)
@@ -179,7 +179,6 @@ struct savedscore
shotdamage = cs.shotdamage;
damage = cs.damage;
team = t;
points = cs.points;
valid = true;
}
@@ -191,18 +190,17 @@ struct savedscore
cs.teamkills = teamkills;
cs.shotdamage = shotdamage;
cs.damage = damage;
cs.points = points;
}
};
struct medals
{
int lasthit, lastgun, combohits, combo, combotime, combodamage, ncombos, ncovers, nhs;
int points, lasthit, lastgun, combohits, combo, combotime, combodamage, ncombos, ncovers, nhs;
int ask, askmillis, linked, linkmillis, linkreason;
bool updatedpoints;
void reset()
{
lasthit = lastgun = combohits = combo = combotime = combodamage = ncombos = ncovers = nhs = 0;
points = lasthit = lastgun = combohits = combo = combotime = combodamage = ncombos = ncovers = nhs = 0;
askmillis = linkmillis = 0;
linkreason = linked = ask = -1;
updatedpoints = false;