Fixed food and score icons

This commit is contained in:
jsalmon3 2004-05-23 19:59:26 +00:00
parent 8c7767cc4b
commit b3e277d1c1

View file

@ -215,7 +215,7 @@ global void LoadUserInterface(void)
TheUI.Resource.Graphic = LoadGraphic(TheUI.Resource.File);
}
for (i = 0; i < MaxCosts; ++i) {
for (i = 0; i <= ScoreCost; ++i) {
// FIXME: reuse same graphics?
if (TheUI.Resources[i].Icon.File) {
TheUI.Resources[i].Icon.Graphic =
@ -224,15 +224,6 @@ global void LoadUserInterface(void)
}
}
// FIXME: reuse same graphics?
if (TheUI.Resources[FoodCost].Icon.File) {
TheUI.Resources[FoodCost].Icon.Graphic = LoadGraphic(TheUI.Resources[FoodCost].Icon.File);
}
// FIXME: reuse same graphics?
if (TheUI.Resources[ScoreCost].Icon.File) {
TheUI.Resources[ScoreCost].Icon.Graphic = LoadGraphic(TheUI.Resources[ScoreCost].Icon.File);
}
if (TheUI.InfoPanel.File) {
TheUI.InfoPanel.Graphic = LoadGraphic(TheUI.InfoPanel.File);
}