forked from github/server
Type-warnings entfernt, die corwins letzter commit erzeugte.
This commit is contained in:
parent
9515363c56
commit
5f3c13521e
|
@ -3362,7 +3362,7 @@ maxunits(faction *f)
|
|||
|
||||
for(f2 = factions; f2; f2 = f2->next) {
|
||||
if(f2->alliance == f->alliance) {
|
||||
mult += 0.4 * fspecial(f2, FS_ADMINISTRATOR);
|
||||
mult += 0.4f * fspecial(f2, FS_ADMINISTRATOR);
|
||||
}
|
||||
}
|
||||
return (int) (global.maxunits * mult);
|
||||
|
|
|
@ -1178,14 +1178,7 @@ parse_main(xmlDocPtr doc)
|
|||
xmlFree(property);
|
||||
}
|
||||
|
||||
global.unitsperalliance = false;
|
||||
property = xmlGetProp(node, BAD_CAST "unitsperalliance");
|
||||
if (property!=NULL) {
|
||||
if(!strcmp(property, "yes")) {
|
||||
global.unitsperalliance = true;
|
||||
}
|
||||
xmlFree(property);
|
||||
}
|
||||
global.unitsperalliance = xml_bvalue(node, "unitsperalliance", false);
|
||||
|
||||
property = xmlGetProp(node, BAD_CAST "units");
|
||||
if (property!=NULL) {
|
||||
|
|
Loading…
Reference in New Issue