Commit 4922e3f1d771392b94c9852fe747cb02d84581e0
1 parent
490f6e61
Exists in
master
and in
1 other branch
Pose neutra no caso de sentença com baixa qualidade
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
renderer/src/renderer.cpp
@@ -37,7 +37,11 @@ void Renderer::serverInitialize(){ | @@ -37,7 +37,11 @@ void Renderer::serverInitialize(){ | ||
37 | } | 37 | } |
38 | 38 | ||
39 | void Renderer::receiveGlosa(std::string glosa, int64_t pts) { | 39 | void Renderer::receiveGlosa(std::string glosa, int64_t pts) { |
40 | - glosa_copy = glosa; | 40 | + if(glosa == "SENTENCACOMBAIXAQUALIDADE") |
41 | + glosa_copy = "_DEFAULT"; | ||
42 | + else | ||
43 | + glosa_copy = glosa; | ||
44 | + | ||
41 | ostringstream oss; | 45 | ostringstream oss; |
42 | oss << pts; | 46 | oss << pts; |
43 | glosa_copy += "#"; // formato da string enviada p/ o player: Glosa#pts | 47 | glosa_copy += "#"; // formato da string enviada p/ o player: Glosa#pts |