1
0
Fork 0

cosmetics

This commit is contained in:
mfranz 2005-10-30 16:06:08 +00:00
parent f5a91ffdc7
commit 34b8ca3c33

View file

@ -78,7 +78,6 @@ static SGPropertyNode *getNamedNode(SGPropertyNode *prop, const char *name) {
if ((p = getNamedNode(prop->getChild(i), name)))
return p;
if (!strcmp(prop->getStringValue("name"), name))
return prop;
@ -289,10 +288,10 @@ struct atcdata {
id = i, name = n, distance = d;
}
bool operator<(const atcdata& a) const {
return a.id != id && a.distance > distance;
return id != a.id && distance < a.distance;
}
bool operator==(const atcdata& a) const {
return a.distance == distance && a.id == id;
return distance == a.distance && id == a.id;
}
string id;
string name;