From df8e4eeecb5d83df1f6579eddc2ea3ff3aa7c1b6 Mon Sep 17 00:00:00 2001 From: Gus <85527977+gusocosta@users.noreply.github.com> Date: Wed, 23 Jul 2025 17:45:18 -0300 Subject: [PATCH] Correct a bug on the time calculation --- virtua_pet_R1.ino | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/virtua_pet_R1.ino b/virtua_pet_R1.ino index 1c702bd..da2ef5d 100644 --- a/virtua_pet_R1.ino +++ b/virtua_pet_R1.ino @@ -201,14 +201,16 @@ void time_check(){ if (act_time[1] >= 60){ //check hours act_time[1] = 0; act_time[2] += 1; - if (act_time[1] >= 24){ //check days - act_time[2] = 0; - act_time[3] += 1; - if (pet_lvl == 1){ - evolve_ani = true; - } - } - } + } + + if (act_time[2] >= 24){ //check days + act_time[2] = 0; + act_time[3] += 1; + if (pet_lvl == 1){ + evolve_ani = true; + } + } + } } }