Jeck - Fixes for how options handle first boot, should resolve trophy room issue (no unlocked set on first boot).

This commit is contained in:
wagic.jeck
2009-12-13 15:00:53 +00:00
parent 61f38b7494
commit b766dd6e4a
5 changed files with 40 additions and 39 deletions

View File

@@ -541,6 +541,7 @@ void WGuiList::Render(){
break;
}
vHeight = 0;
if(start >= 0)
for (nowPos=nbitems;nowPos > 1; nowPos--){
if(!items[start]->Visible())
continue;
@@ -1288,7 +1289,7 @@ WGuiAward::WGuiAward(int _id, string name, string _text): WGuiItem(name){
WGuiAward::~WGuiAward(){
GameOptionAward * goa = dynamic_cast<GameOptionAward*>(&options[id]);
if(goa)
goa->setViewed(true); //FIXME: This removes "New" status even if the award hasn't been selected.
goa->setViewed(true);
}
bool WGuiAward::Visible(){
//WGuiAward is only visible when it's tied to an already acchieved award.