- Afegeix el camp "bmp" amb el nom del gif, per a poder usar-lo durant l'edició

This commit is contained in:
2023-09-21 11:32:53 +02:00
parent 157ee1edbd
commit 510bc7d9bb
2 changed files with 2 additions and 0 deletions

View File

@@ -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);

View File

@@ -37,6 +37,7 @@ namespace actor
{
char name[16];
draw::surface *surface;
char bmp[16];
SDL_Rect bmp_rect;
SDL_Point bmp_offset;