Some minor code changes.
This commit is contained in:
1 parent
0136198313
commit
216e15366c
2 files changed
+3
-3
No files matched your search
@@ -580,7 +580,7 @@ namespace Vocaluxe.Screens
|
||||
//Update texture and name
|
||||
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;
|
||||
Texts[TextPlayer[i]].Text = CProfiles.Profiles[CGame.Player[i].ProfileID].PlayerName;
|
||||
|
||||
@@ -1342,7 +1342,7 @@ namespace Vocaluxe.Screens
|
||||
{
|
||||
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;
|
||||
else
|
||||
Statics[StaticAvatars[i, CGame.NumPlayer - 1]].Visible = false;
|
||||
@@ -1353,7 +1353,7 @@ namespace Vocaluxe.Screens
|
||||
{
|
||||
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;
|
||||
else
|
||||
Texts[TextNames[i, CGame.NumPlayer - 1]].Visible = false;
|
||||
|
||||
Reference in new issue
Block a user