mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-02-09 13:24:01 +00:00
Fix save slot index confusion in dev mode. + tiny cleanup.
This commit is contained in:
parent
4585bb19ca
commit
abc35b4c9d
1 changed files with 2 additions and 11 deletions
|
@ -65,12 +65,7 @@ AquariaSaveSlot::AquariaSaveSlot(int slot) : AquariaGuiQuad()
|
||||||
if (description.length() > 0)
|
if (description.length() > 0)
|
||||||
{
|
{
|
||||||
std::ostringstream os;
|
std::ostringstream os;
|
||||||
os << dsq->continuity.stringBank.get(2002) << " ";
|
os << dsq->continuity.stringBank.get(2002) << " " << (slot+1) << " - " << description;
|
||||||
if (dsq->isDeveloperKeys())
|
|
||||||
os << slot;
|
|
||||||
else
|
|
||||||
os << (slot+1);
|
|
||||||
os << " - " << description;
|
|
||||||
text1->setText(os.str());
|
text1->setText(os.str());
|
||||||
glowText->setText(os.str());
|
glowText->setText(os.str());
|
||||||
|
|
||||||
|
@ -292,11 +287,7 @@ std::string AquariaSaveSlot::getSaveDescription(const XMLDocument &doc)
|
||||||
int hours, minutes, seconds;
|
int hours, minutes, seconds;
|
||||||
hours = minutes = seconds = 0;
|
hours = minutes = seconds = 0;
|
||||||
|
|
||||||
int exp = 0, money = 0, time = 0;
|
int time = 0;
|
||||||
if (startData->Attribute("exp"))
|
|
||||||
exp = atoi(startData->Attribute("exp"));
|
|
||||||
if (startData->Attribute("money"))
|
|
||||||
money = atoi(startData->Attribute("money"));
|
|
||||||
if (startData->Attribute("seconds"))
|
if (startData->Attribute("seconds"))
|
||||||
{
|
{
|
||||||
std::istringstream is(startData->Attribute("seconds"));
|
std::istringstream is(startData->Attribute("seconds"));
|
||||||
|
|
Loading…
Add table
Reference in a new issue