Apply "None" alias to splitscreen players

This commit is contained in:
wolfy852 2019-05-12 04:29:52 -05:00
parent a523f3c874
commit da17ef4772

View file

@ -5365,6 +5365,13 @@ static void Follower2_OnChange(void)
strlwr(str);
if (stricmp(cpy,"0") !=0 && !atoi(cpy)) // yep, that's a string alright...
{
if (stricmp(cpy, "None") == 0)
{
CV_StealthSet(&cv_follower2, "-1");
SendNameAndColor2();
return;
}
INT32 num = R_FollowerAvailable(str);
char set[10];
if (num == -1) // that's an error.
@ -5387,6 +5394,13 @@ static void Follower3_OnChange(void)
strlwr(str);
if (stricmp(cpy,"0") !=0 && !atoi(cpy)) // yep, that's a string alright...
{
if (stricmp(cpy, "None") == 0)
{
CV_StealthSet(&cv_follower3, "-1");
SendNameAndColor3();
return;
}
INT32 num = R_FollowerAvailable(str);
char set[10];
if (num == -1) // that's an error.
@ -5409,6 +5423,13 @@ static void Follower4_OnChange(void)
strlwr(str);
if (stricmp(cpy,"0") !=0 && !atoi(cpy)) // yep, that's a string alright...
{
if (stricmp(cpy, "None") == 0)
{
CV_StealthSet(&cv_follower4, "-1");
SendNameAndColor4();
return;
}
INT32 num = R_FollowerAvailable(str);
char set[10];
if (num == -1) // that's an error.