[Change] Swapped DEBUG's out for WARN's, it makes more sense..
This commit is contained in:
parent
aade673567
commit
17b4e1d44b
@ -52,7 +52,7 @@ int faction_get(const char* name) {
|
|||||||
if(i != faction_nstack)
|
if(i != faction_nstack)
|
||||||
return i;
|
return i;
|
||||||
|
|
||||||
DEBUG("Faction '%s' not found in stack.", name);
|
WARN("Faction '%s' not found in stack.", name);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,7 +105,7 @@ void faction_modPlayer(int f, int mod) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
DEBUG("%d is an invalid faction.", f);
|
WARN("%d is an invalid faction.", f);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -115,7 +115,7 @@ int faction_getPlayer(int f) {
|
|||||||
if(faction_isFaction(f)) {
|
if(faction_isFaction(f)) {
|
||||||
return faction_stack[f].player;
|
return faction_stack[f].player;
|
||||||
} else {
|
} else {
|
||||||
DEBUG("%d is an invalid faction.", f);
|
WARN("%d is an invalid faction.", f);
|
||||||
return -1000;
|
return -1000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -170,7 +170,7 @@ int areEnemies(int a, int b) {
|
|||||||
return 1;
|
return 1;
|
||||||
else return 0;
|
else return 0;
|
||||||
} else {
|
} else {
|
||||||
DEBUG("areEnemies: %d is an invalid faction.", b);
|
WARN("areEnemies: %d is an invalid faction.", b);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -180,7 +180,7 @@ int areEnemies(int a, int b) {
|
|||||||
return 1;
|
return 1;
|
||||||
else return 0;
|
else return 0;
|
||||||
} else {
|
} else {
|
||||||
DEBUG("areEnemies: %d is an invalid faction.", a);
|
WARN("areEnemies: %d is an invalid faction.", a);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -189,7 +189,7 @@ int areEnemies(int a, int b) {
|
|||||||
if(faction_isFaction(a)) fa = &faction_stack[a];
|
if(faction_isFaction(a)) fa = &faction_stack[a];
|
||||||
else {
|
else {
|
||||||
/* a isn't valid. */
|
/* a isn't valid. */
|
||||||
DEBUG("areEnemies: %d is an invalid faction.", a);
|
WARN("areEnemies: %d is an invalid faction.", a);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -197,7 +197,7 @@ int areEnemies(int a, int b) {
|
|||||||
if(faction_isFaction(b)) fb = &faction_stack[b];
|
if(faction_isFaction(b)) fb = &faction_stack[b];
|
||||||
else {
|
else {
|
||||||
/* b isn't valid. */
|
/* b isn't valid. */
|
||||||
DEBUG("areEnemies: %d is an invalid faction.", b);
|
WARN("areEnemies: %d is an invalid faction.", b);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -224,7 +224,7 @@ int areAllies(int a, int b) {
|
|||||||
if(faction_stack[b].player > PLAYER_ALLY) return 1;
|
if(faction_stack[b].player > PLAYER_ALLY) return 1;
|
||||||
else return 0;
|
else return 0;
|
||||||
} else {
|
} else {
|
||||||
DEBUG("%d is an invalid faction.", b);
|
WARN("%d is an invalid faction.", b);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -233,7 +233,7 @@ int areAllies(int a, int b) {
|
|||||||
if(faction_stack[a].player > PLAYER_ALLY) return 1;
|
if(faction_stack[a].player > PLAYER_ALLY) return 1;
|
||||||
else return 0;
|
else return 0;
|
||||||
} else {
|
} else {
|
||||||
DEBUG("%d is an invalid faction.", a);
|
WARN("%d is an invalid faction.", a);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -246,7 +246,7 @@ int areAllies(int a, int b) {
|
|||||||
if(faction_isFaction(a)) fa = &faction_stack[a];
|
if(faction_isFaction(a)) fa = &faction_stack[a];
|
||||||
else {
|
else {
|
||||||
/* b isn't valid. */
|
/* b isn't valid. */
|
||||||
DEBUG("%d is an invalid faction.", a);
|
WARN("%d is an invalid faction.", a);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -254,7 +254,7 @@ int areAllies(int a, int b) {
|
|||||||
if(faction_isFaction(b)) fb = &faction_stack[b];
|
if(faction_isFaction(b)) fb = &faction_stack[b];
|
||||||
else {
|
else {
|
||||||
/* b isn't valid. */
|
/* b isn't valid. */
|
||||||
DEBUG("%d is an invalid faction.", b);
|
WARN("%d is an invalid faction.", b);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -303,7 +303,7 @@ static Faction* faction_parse(xmlNodePtr parent) {
|
|||||||
xmlr_strd(node, "longname", tmp->longname);
|
xmlr_strd(node, "longname", tmp->longname);
|
||||||
} while(xml_nextNode(node));
|
} while(xml_nextNode(node));
|
||||||
|
|
||||||
if(player == 0) DEBUG("Faction '%s' missing player tag", tmp->name);
|
if(player == 0) WARN("Faction '%s' missing player tag", tmp->name);
|
||||||
|
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
@ -400,7 +400,7 @@ int factions_load(void) {
|
|||||||
free(buf);
|
free(buf);
|
||||||
xmlCleanupParser();
|
xmlCleanupParser();
|
||||||
|
|
||||||
DEBUG("Loaded %d Faction%s", faction_nstack, (faction_nstack==1) ?"": "s");
|
WARN("Loaded %d Faction%s", faction_nstack, (faction_nstack==1) ?"": "s");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user