don't send tournament state to Ep3 trial edition clients

This commit is contained in:
Martin Michelsen
2023-08-13 19:11:17 -07:00
parent f657012d8e
commit 9b66e07c06
2 changed files with 13 additions and 9 deletions
+4
View File
@@ -2254,6 +2254,10 @@ void send_ep3_confirm_tournament_entry(
shared_ptr<ServerState> s,
shared_ptr<Client> c,
shared_ptr<const Episode3::Tournament> tourn) {
if (c->flags & Client::Flag::IS_TRIAL_EDITION) {
throw runtime_error("cannot send tournament entry command to Episode 3 Trial Edition client");
}
S_ConfirmTournamentEntry_GC_Ep3_CC cmd;
if (tourn) {
cmd.tournament_name = tourn->get_name();