Some minor code changes.

This commit is contained in:
Florian Küpper committed 2013-04-08 12:13:06 +02:00
1 parent 0136198313
commit 216e15366c
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -580,7 +580,7 @@ namespace Vocaluxe.Screens
//Update texture and name //Update texture and name
if (CConfig.Players[i].Length > 0) if (CConfig.Players[i].Length > 0)
{ {
if (CGame.Player[i].ProfileID > -1 && CProfiles.NumProfiles > CGame.Player[i].ProfileID) if (CGame.Player[i].ProfileID > -1 && CProfiles.NumProfiles > 0)
{ {
Statics[StaticPlayerAvatar[i]].Texture = CProfiles.Profiles[CGame.Player[i].ProfileID].Avatar.Texture; Statics[StaticPlayerAvatar[i]].Texture = CProfiles.Profiles[CGame.Player[i].ProfileID].Avatar.Texture;
Texts[TextPlayer[i]].Text = CProfiles.Profiles[CGame.Player[i].ProfileID].PlayerName; Texts[TextPlayer[i]].Text = CProfiles.Profiles[CGame.Player[i].ProfileID].PlayerName;
+2 -2
View File
@@ -1342,7 +1342,7 @@ namespace Vocaluxe.Screens
{ {
for (int i = 0; i < CGame.NumPlayer; i++) for (int i = 0; i < CGame.NumPlayer; i++)
{ {
if (CGame.Player[i].ProfileID > -1 && CProfiles.NumProfiles > CGame.Player[i].ProfileID) if (CGame.Player[i].ProfileID > -1 && CProfiles.NumProfiles > 0)
Statics[StaticAvatars[i, CGame.NumPlayer - 1]].Texture = CProfiles.Profiles[CGame.Player[i].ProfileID].Avatar.Texture; Statics[StaticAvatars[i, CGame.NumPlayer - 1]].Texture = CProfiles.Profiles[CGame.Player[i].ProfileID].Avatar.Texture;
else else
Statics[StaticAvatars[i, CGame.NumPlayer - 1]].Visible = false; Statics[StaticAvatars[i, CGame.NumPlayer - 1]].Visible = false;
@@ -1353,7 +1353,7 @@ namespace Vocaluxe.Screens
{ {
for (int i = 0; i < CGame.NumPlayer; i++) for (int i = 0; i < CGame.NumPlayer; i++)
{ {
if (CGame.Player[i].ProfileID > -1 && CProfiles.NumProfiles > CGame.Player[i].ProfileID) if (CGame.Player[i].ProfileID > -1 && CProfiles.NumProfiles > 0)
Texts[TextNames[i, CGame.NumPlayer - 1]].Text = CProfiles.Profiles[CGame.Player[i].ProfileID].PlayerName; Texts[TextNames[i, CGame.NumPlayer - 1]].Text = CProfiles.Profiles[CGame.Player[i].ProfileID].PlayerName;
else else
Texts[TextNames[i, CGame.NumPlayer - 1]].Visible = false; Texts[TextNames[i, CGame.NumPlayer - 1]].Visible = false;