strcpy(teamscores_label(i), ReadString());
teamscores_flags(i) = ReadByte();
}
- if (ReadByte())
- net_handle_ServerWelcome();
+ net_handle_ServerWelcome();
return = true;
Scoreboard_InitScores();
Gamemode_Init();
}
}
-int Welcomemessage_too = 1;
bool ScoreInfo_SendEntity(entity this, entity to, int sf)
{
float i;
WriteString(MSG_ENTITY, teamscores_label(i));
WriteByte(MSG_ENTITY, teamscores_flags(i));
}
- WriteByte(MSG_ENTITY, Welcomemessage_too);
// for some reason ScoreInfo_SendEntity is called twice on client connection
- // send the welcome message only once
- if (Welcomemessage_too)
- {
- // welcome message is sent here because it needs to know the gametype
- SendWelcomemessage_msg_type(this, false, MSG_ENTITY);
- Welcomemessage_too = 0;
- }
+ // FIXME send the welcome message only once
+ // welcome message is sent here because it needs to know the gametype
+ SendWelcomemessage_msg_type(this, false, MSG_ENTITY);
return true;
}