Skip to content
This repository was archived by the owner on Apr 16, 2018. It is now read-only.

Commit f71e256

Browse files
committed
Arrumado problema de não zerar placar em nova partida
1 parent fd7ebba commit f71e256

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Cara_cracha.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,12 @@ bool Cara_cracha::init() {
436436
bool Cara_cracha::update() {
437437
int tela_id_antiga = this->tela_id; // Verifica se é necessário reiniciar o tempo
438438
this->event.update();
439-
if ((tela_id_antiga == 0 || tela_id_antiga == 3) && this->tela_id == 1) // Sai da tela inicial ou da tela final e vai para a tela de inicio de jogo
439+
if ((tela_id_antiga == 0 || tela_id_antiga == 3) && this->tela_id == 1) { // Sai da tela inicial ou da tela final e vai para a tela de inicio de jogo
440440
this->hora = HORA_INICIO_JOGO;
441+
this->pontua_prov = 0;
442+
for (int i = 0; i < 4; i++)
443+
this->count_criterios[i] = 0;
444+
}
441445

442446

443447
if (this->tela_id == 1 || this->tela_id == 2) { // Atualiza as informações apenas durante o jogo

0 commit comments

Comments
 (0)