[Change] Swapped DEBUG's out for WARN's, it makes more sense..

This commit is contained in:
Allanis 2013-08-15 16:15:03 +01:00
parent aade673567
commit 17b4e1d44b

View File

@ -52,7 +52,7 @@ int faction_get(const char* name) {
if(i != faction_nstack)
return i;
DEBUG("Faction '%s' not found in stack.", name);
WARN("Faction '%s' not found in stack.", name);
return -1;
}
@ -105,7 +105,7 @@ void faction_modPlayer(int f, int mod) {
}
} else {
DEBUG("%d is an invalid faction.", f);
WARN("%d is an invalid faction.", f);
return;
}
}
@ -115,7 +115,7 @@ int faction_getPlayer(int f) {
if(faction_isFaction(f)) {
return faction_stack[f].player;
} else {
DEBUG("%d is an invalid faction.", f);
WARN("%d is an invalid faction.", f);
return -1000;
}
}
@ -170,7 +170,7 @@ int areEnemies(int a, int b) {
return 1;
else return 0;
} else {
DEBUG("areEnemies: %d is an invalid faction.", b);
WARN("areEnemies: %d is an invalid faction.", b);
return 0;
}
}
@ -180,7 +180,7 @@ int areEnemies(int a, int b) {
return 1;
else return 0;
} else {
DEBUG("areEnemies: %d is an invalid faction.", a);
WARN("areEnemies: %d is an invalid faction.", a);
return 0;
}
}
@ -189,7 +189,7 @@ int areEnemies(int a, int b) {
if(faction_isFaction(a)) fa = &faction_stack[a];
else {
/* a isn't valid. */
DEBUG("areEnemies: %d is an invalid faction.", a);
WARN("areEnemies: %d is an invalid faction.", a);
return 0;
}
@ -197,7 +197,7 @@ int areEnemies(int a, int b) {
if(faction_isFaction(b)) fb = &faction_stack[b];
else {
/* b isn't valid. */
DEBUG("areEnemies: %d is an invalid faction.", b);
WARN("areEnemies: %d is an invalid faction.", b);
return 0;
}
@ -224,7 +224,7 @@ int areAllies(int a, int b) {
if(faction_stack[b].player > PLAYER_ALLY) return 1;
else return 0;
} else {
DEBUG("%d is an invalid faction.", b);
WARN("%d is an invalid faction.", b);
return 0;
}
}
@ -233,7 +233,7 @@ int areAllies(int a, int b) {
if(faction_stack[a].player > PLAYER_ALLY) return 1;
else return 0;
} else {
DEBUG("%d is an invalid faction.", a);
WARN("%d is an invalid faction.", a);
return 0;
}
}
@ -246,7 +246,7 @@ int areAllies(int a, int b) {
if(faction_isFaction(a)) fa = &faction_stack[a];
else {
/* b isn't valid. */
DEBUG("%d is an invalid faction.", a);
WARN("%d is an invalid faction.", a);
return 0;
}
@ -254,7 +254,7 @@ int areAllies(int a, int b) {
if(faction_isFaction(b)) fb = &faction_stack[b];
else {
/* b isn't valid. */
DEBUG("%d is an invalid faction.", b);
WARN("%d is an invalid faction.", b);
return 0;
}
@ -303,7 +303,7 @@ static Faction* faction_parse(xmlNodePtr parent) {
xmlr_strd(node, "longname", tmp->longname);
} 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;
}
@ -400,7 +400,7 @@ int factions_load(void) {
free(buf);
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;
}