[Fix] <blushes> Bugz.

This commit is contained in:
Allanis 2013-05-08 20:25:22 +01:00
parent fa7138f907
commit 18b57ff29b
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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.