From 510bc7d9bb214baad2668a68dceb22dfc9b300e6 Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Thu, 21 Sep 2023 11:32:53 +0200 Subject: [PATCH] =?UTF-8?q?-=20Afegeix=20el=20camp=20"bmp"=20amb=20el=20no?= =?UTF-8?q?m=20del=20gif,=20per=20a=20poder=20usar-lo=20durant=20l'edici?= =?UTF-8?q?=C3=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/actor.cpp | 1 + source/actor.h | 1 + 2 files changed, 2 insertions(+) diff --git a/source/actor.cpp b/source/actor.cpp index 8c7765c..9247447 100644 --- a/source/actor.cpp +++ b/source/actor.cpp @@ -28,6 +28,7 @@ namespace actor { actor_t *act = (actor_t*)malloc(sizeof(actor_t)); strcpy(act->name, name); + strcpy(act->bmp, bmp); act->pos = p; act->size = s; act->surface = draw::loadSurface(bmp); diff --git a/source/actor.h b/source/actor.h index 0246462..573faed 100644 --- a/source/actor.h +++ b/source/actor.h @@ -37,6 +37,7 @@ namespace actor { char name[16]; draw::surface *surface; + char bmp[16]; SDL_Rect bmp_rect; SDL_Point bmp_offset;