Fix inconsistencies in guest nick name generation
When the setting net/nick is empty, HW generates a guest name. But there were several problems:
- Team name did not match guest name
- Random guest number was re-rolled multiple times, causing inconsistencies
- Guest number was often too large (now capped at 99999)
#ifdef GL_ES
precision mediump float;
#endif
uniform sampler2D tex0;
uniform vec4 tint;
uniform bool tintAdd;
uniform bool enableTexture;
varying vec2 tex;
void main()
{
if(enableTexture){
if (tintAdd){
tint.a = 0.0;
gl_FragColor = clamp(texture2D(tex0, tex) + tint, 0.0, 1.1);
}else{
gl_FragColor = texture2D(tex0, tex) * tint;
}
}else{
gl_FragColor = tint;
}
}