From da17ef477272e7257b5dbecc9dd2a4a370a7244b Mon Sep 17 00:00:00 2001 From: wolfy852 Date: Sun, 12 May 2019 04:29:52 -0500 Subject: [PATCH] Apply "None" alias to splitscreen players --- src/d_netcmd.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/d_netcmd.c b/src/d_netcmd.c index 8ea9a502..b49138f8 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -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.