From 10ec681bb7e92f8a007ac12221ac0096eef0fe44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Valor=20Mart=C3=ADnez?= Date: Fri, 5 Jul 2024 23:40:56 +0200 Subject: [PATCH] en el modo demo el jugador empieza con un numero aleatorio de cafes --- source/game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/game.cpp b/source/game.cpp index 137e9f5..c7c487d 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -259,9 +259,9 @@ void Game::init(int playerID) } // AƱade 0, 1 o 2 cafes al jugador - // for (int i = 0; i < rand() % 4; ++i) + for (int i = 0; i < rand() % 3; ++i) { - players[0]->hasExtraHit(); + players[0]->giveExtraHit(); } // Deshabilita los sonidos