From: Mattia Basaglia Date: Fri, 10 Jul 2015 10:05:56 +0000 (+0200) Subject: Use a fallback name on the client if the custom vote options don't provide one X-Git-Tag: xonotic-v0.8.1~43^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=13e7b9c31e47ac5000ce6ef6ba84befe2ea75edc;p=xonotic%2Fxonotic-data.pk3dir.git Use a fallback name on the client if the custom vote options don't provide one --- diff --git a/qcsrc/client/mapvoting.qc b/qcsrc/client/mapvoting.qc index 8d3874e21..6a82535e1 100644 --- a/qcsrc/client/mapvoting.qc +++ b/qcsrc/client/mapvoting.qc @@ -541,8 +541,11 @@ void GameTypeVote_ReadOption(int i) if ( mv_flags[i] & GTV_CUSTOM ) { - mv_pk3[i] = strzone(ReadString()); // name - mv_desc[i] = strzone(ReadString()); // description + string name = ReadString(); + if ( strlen(name) < 1 ) + name = gt; + mv_pk3[i] = strzone(name); + mv_desc[i] = strzone(ReadString()); } else {