From 8d954ec2e0047c0a5b3042a4b1de2d3a4c16c88a Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Thu, 19 Oct 2023 18:57:33 +0200 Subject: [PATCH] - Canviat el tipus de mapa::velocitat per a que el compilaooooooor no renegue --- source/proc_mapa.cpp | 3 ++- source/proc_mapa.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/source/proc_mapa.cpp b/source/proc_mapa.cpp index c6900b8..03c8feb 100644 --- a/source/proc_mapa.cpp +++ b/source/proc_mapa.cpp @@ -28,7 +28,7 @@ namespace mapa int ini_x, ini_y; int fin_x, fin_y; - int velocitat; + uint32_t velocitat; draw::surface *mapa = nullptr; draw::surface *porta = nullptr; @@ -116,6 +116,7 @@ namespace mapa draw::draw(ini_x*16, ini_y*16); draw::draw(fin_x*16, fin_y*16); + font::selectFont(font::type::normal); font::print(23,188, mapa::accions::parar); font::print(39,188, mapa::accions::cavar); font::print(55,188, mapa::accions::escalar); diff --git a/source/proc_mapa.h b/source/proc_mapa.h index f99847b..8b0dced 100644 --- a/source/proc_mapa.h +++ b/source/proc_mapa.h @@ -1,5 +1,5 @@ #pragma once - +#include namespace mapa { namespace arounders @@ -24,7 +24,7 @@ namespace mapa extern int corda; } - extern int velocitat; + extern uint32_t velocitat; void carregar();