fixup SOC changes for C 89 mode

This commit is contained in:
Alam Arias 2019-03-07 17:34:46 -05:00
parent bf75bf7697
commit ea80f5bdd9

View file

@ -707,6 +707,7 @@ static void readfollower(MYFILE *f)
boolean nameset; boolean nameset;
INT32 fallbackstate = 0; INT32 fallbackstate = 0;
INT32 res; INT32 res;
INT32 i;
if (numfollowers > MAXSKINS) if (numfollowers > MAXSKINS)
{ {
@ -880,7 +881,7 @@ static void readfollower(MYFILE *f)
strcpy(dname, followers[numfollowers].skinname); // display name, just used for printing succesful stuff or errors later down the line. strcpy(dname, followers[numfollowers].skinname); // display name, just used for printing succesful stuff or errors later down the line.
// now that the skin name is ready, post process the actual name to turn the underscores into spaces! // now that the skin name is ready, post process the actual name to turn the underscores into spaces!
for (INT32 i = 0; followers[numfollowers].name[i]; i++) for (i = 0; followers[numfollowers].name[i]; i++)
{ {
if (followers[numfollowers].name[i] == '_') if (followers[numfollowers].name[i] == '_')
followers[numfollowers].name[i] = ' '; followers[numfollowers].name[i] = ' ';