summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-07 22:38:45 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-07 23:31:26 +0100
commit8218792cbbd00da3530826330270a20906fefad5 (patch)
tree1a3d2cec03feeba3cab9fe376129258e134abb52 /main.c
parent2612e584f6aab4515c7da5a7a6ea005d0e8344ba (diff)
add the warrior gobelin as a real class
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 3167cb0..acbd749 100644
--- a/main.c
+++ b/main.c
@@ -214,6 +214,7 @@ int Fchargerimages (SURFACES *surfaces)
int i;
LOAD_IMAGE(Pgobelin, "images/gobelin.bmp");
+ LOAD_IMAGE(red_warrior_gobelin, "images/gobelin.bmp");
LOAD_IMAGE(Ppaladin, "images/paladin.bmp");
LOAD_IMAGE(Ppretre, "images/pretre.bmp");
LOAD_IMAGE(Pvoleur, "images/voleur.bmp");
@@ -242,6 +243,7 @@ int Fchargerimages (SURFACES *surfaces)
//définition de la transparence alpha dans les surfaces
SDL_SetColorKey(surfaces->Pgobelin,SDL_SRCCOLORKEY,SDL_MapRGB(surfaces->Pecran->format,0,255,18));
+ SDL_SetColorKey(surfaces->red_warrior_gobelin, SDL_SRCCOLORKEY,SDL_MapRGB(surfaces->Pecran->format,0,255,18));
SDL_SetColorKey(surfaces->Ppretre,SDL_SRCCOLORKEY,SDL_MapRGB(surfaces->Pecran->format,39,189,31));
SDL_SetColorKey(surfaces->Ppaladin,SDL_SRCCOLORKEY,SDL_MapRGB(surfaces->Pecran->format,189,31,31));
@@ -266,6 +268,7 @@ void Fdechargerimages (SURFACES *surfaces)//dechargement des surfaces alouées
int i;
SDL_FreeSurface(surfaces->Pecran);
SDL_FreeSurface (surfaces->Pgobelin);
+ SDL_FreeSurface(surfaces->red_warrior_gobelin);
SDL_FreeSurface (surfaces->Ppaladin);
SDL_FreeSurface (surfaces->Ppretre);