[Fix] <blushes> Bugz.
This commit is contained in:
parent
fa7138f907
commit
18b57ff29b
@ -142,7 +142,7 @@ function timeup()
|
|||||||
player.msg(misn_time_msg)
|
player.msg(misn_time_msg)
|
||||||
misn.finish(false)
|
misn.finish(false)
|
||||||
end
|
end
|
||||||
misn.setDesc(string.format( misn_desc[2], planet, system,
|
misn.setDesc(string.format( misn_desc[21], planet, system,
|
||||||
carg_mass, carg_type,
|
carg_mass, carg_type,
|
||||||
time.str(misn_time), time.str(misn_time-time.get())))
|
time.str(misn_time), time.str(misn_time-time.get())))
|
||||||
end
|
end
|
||||||
|
@ -1484,10 +1484,14 @@ static int player_saveShip(xmlTextWriterPtr writer, Pilot* ship, char* loc) {
|
|||||||
// Save the commodities.
|
// Save the commodities.
|
||||||
xmlw_startElem(writer, "commodities");
|
xmlw_startElem(writer, "commodities");
|
||||||
for(i = 0; i < ship->ncommodities; i++) {
|
for(i = 0; i < ship->ncommodities; i++) {
|
||||||
xmlw_elem(writer, "outfit", ship->commodities[i].commodity->name);
|
xmlw_startElem(writer, "commodity");
|
||||||
|
|
||||||
xmlw_attr(writer, "quantity", "%d", ship->commodities[i].quantity);
|
xmlw_attr(writer, "quantity", "%d", ship->commodities[i].quantity);
|
||||||
if(ship->commodities[i].id > 0)
|
if(ship->commodities[i].id > 0)
|
||||||
xmlw_attr(writer, "id", "%d", ship->commodities[i].id);
|
xmlw_attr(writer, "id", "%d", ship->commodities[i].id);
|
||||||
|
xmlw_str(writer, ship->commodities[i].commodity->name);
|
||||||
|
|
||||||
|
xmlw_endElem(writer); // Commodity.
|
||||||
}
|
}
|
||||||
xmlw_endElem(writer); // Commodities.
|
xmlw_endElem(writer); // Commodities.
|
||||||
xmlw_endElem(writer); // Ship.
|
xmlw_endElem(writer); // Ship.
|
||||||
|
Loading…
Reference in New Issue
Block a user