Forgot players in the game info...

This commit is contained in:
simon.kagstrom 2010-03-30 05:10:53 +00:00
parent 5964b5e783
commit 1854a65cd8
2 changed files with 5 additions and 1 deletions

View File

@ -11,6 +11,7 @@ public:
{
this->gi = NULL;
memset(this->year, 0, sizeof(this->year));
memset(this->players, 0, sizeof(this->players));
memset(this->gi_messages, 0, sizeof(this->gi_messages));
this->setSelectedBackground(NULL, NULL, NULL, NULL, NULL, NULL);
}
@ -80,6 +81,7 @@ public:
if (this->gi)
{
snprintf(this->year, sizeof(this->year), "%d", this->gi->year);
snprintf(this->players, sizeof(this->players), "%d", this->gi->players);
this->gi_messages[0] = this->gi->name ? this->gi->name : " ";
this->gi_messages[1] = this->gi->publisher ? this->gi->publisher : " ";
this->gi_messages[2] = this->gi->creator ? this->gi->creator : " ";
@ -91,12 +93,14 @@ public:
this->gi_messages[5] = genre_dlg[this->gi->genre - 1];
}
this->gi_messages[6] = year;
this->gi_messages[7] = this->players;
this->setText(this->gi_messages);
}
const char *gi_messages[8];
const char *gi_messages[9];
char year[8];
char players[4];
GameInfo *gi;
};

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 41 KiB