From b31a578731e6a343827999d190c6f9040acc4957 Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Thu, 31 Oct 2024 16:43:41 +0100 Subject: [PATCH] - [FIX] El missatge al pillar un skill era sempre el de les botes --- source/actor.cpp | 8 ++++---- source/m_menu.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/actor.cpp b/source/actor.cpp index 63e1460..f06cbf1 100644 --- a/source/actor.cpp +++ b/source/actor.cpp @@ -2284,10 +2284,10 @@ namespace actor bool giveSkill(char *skill) { const int skill_number = getSkillFromString(skill); - if (skill_number | SKILL_SHOES) modules::game::setMissatge(" JA TENS LES SABATES!- ARA JA POTS BOTAR!"); - else if (skill_number | SKILL_GLOVES) modules::game::setMissatge(" JA TENS ELS GUANTS!- ARA JA POTS ESPENTAR!"); - else if (skill_number | SKILL_PANTS) modules::game::setMissatge(" JA TENS ELS PANTALONS!- JA POTS AGAFAR COSES!"); - else if (skill_number | SKILL_BAG) modules::game::setMissatge(" JA TENS LA MOTXILLA!- A ARREPLEGAR PECES!"); + if (skill_number & SKILL_SHOES) modules::game::setMissatge(" JA TENS LES SABATES!- ARA JA POTS BOTAR!"); + else if (skill_number & SKILL_GLOVES) modules::game::setMissatge(" JA TENS ELS GUANTS!- ARA JA POTS ESPENTAR!"); + else if (skill_number & SKILL_PANTS) modules::game::setMissatge(" JA TENS ELS PANTALONS!- JA POTS AGAFAR COSES!"); + else if (skill_number & SKILL_BAG) modules::game::setMissatge(" JA TENS LA MOTXILLA!- A ARREPLEGAR PECES!"); return giveSkill(skill_number); } diff --git a/source/m_menu.cpp b/source/m_menu.cpp index 23850b6..708166b 100644 --- a/source/m_menu.cpp +++ b/source/m_menu.cpp @@ -120,7 +120,7 @@ namespace modules //draw::print2(input::getPadBtnPressed(), 3, 0, 24, RED, FONT_ZOOM_NONE); draw::print2("(C) JAILDOCTOR 2024", 11, 28, TEAL, FONT_ZOOM_NONE); - draw::print2("v1.5", 36, 28, WHITE, FONT_ZOOM_NONE); + draw::print("v1.5b", 299, 233, WHITE, PAPER); draw::render(); return OPTION_NONE;