mthrowu, nhlan, options, regions, rip and role globals moved to g.

This commit is contained in:
Bart House
2018-12-25 16:26:27 -08:00
parent 64be5fd35a
commit 769ad91cc3
48 changed files with 679 additions and 649 deletions

View File

@@ -27,17 +27,15 @@ init_lan_features()
* the other LAN features depend on a unique username being available.
*
*/
char lusername[MAX_LAN_USERNAME];
int lusername_size = MAX_LAN_USERNAME;
char *
lan_username()
{
char *lu;
lu = get_username(&lusername_size);
lu = get_username(&g.lusername_size);
if (lu) {
Strcpy(lusername, lu);
return lusername;
Strcpy(g.lusername, lu);
return g.lusername;
} else
return (char *) 0;
}