if( !strcmp(location,"steam") )
alias->workshop_id = atoll( uid+12 );
- else if( !strcmp(location,"local") )
+ else if( !strcmp(location,"local") ){
+ alias->workshop_id = 0;
vg_strncpy( uid+12, alias->foldername, 64, k_strncpy_always_add_null );
+ }
else
return 0;
u32 chs = vg_strncpy( client->username, prop->name, name_len,
k_strncpy_always_add_null );
- vg_info( "client #%d changed name to: %s\n", client_id,
- client->username );
+ vg_info( "client #%d changed name to: %s [%s]\n", client_id,
+ client->username, prop->name );
u32 propsize = sizeof(netmsg_playerusername) + chs + 1;
gameserver_send_to_all( client_id, prop, propsize,
network_msgstring( update->name, msg->m_cbSize, sizeof(*update),
player->username, sizeof(player->username) );
- vg_info( "#%u changed username to: %s\n", player->username );
+ vg_info( "#%u changed username to: %s\n",
+ update->index, player->username );
}
else {
vg_error( "inetmsg_playerleave: player index out of range\n" );