summaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'map.c')
-rw-r--r--map.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/map.c b/map.c
index 3485d64..15aa3f7 100644
--- a/map.c
+++ b/map.c
@@ -86,8 +86,8 @@ void Fchargersurfaces_map (SURFACES *surfaces,POSITIONS*positions)
{
for(i=0;i<15;i++)
{
- positions->Vpositionmap_item[i][j].x=i*64+32;
- positions->Vpositionmap_item[i][j].y=j*64+32;
+ positions->map_item[i][j].x = i * 64 + 32;
+ positions->map_item[i][j].y = j * 64 + 32;
}
}
surfaces->Pmap_sol=NULL;
@@ -120,16 +120,16 @@ void Fblittermap (SURFACES*surfaces,POSITIONS*positions,int map[][11])
switch (map[i][j])
{
case SOL:
- SDL_BlitSurface(surfaces->Pmap_sol,NULL,surfaces->Pecran,&positions->Vpositionmap_item[i][j]);
+ SDL_BlitSurface(surfaces->Pmap_sol, NULL, surfaces->screen, &positions->map_item[i][j]);
break;
case MUR:
- SDL_BlitSurface(surfaces->Pmap_mur,NULL,surfaces->Pecran,&positions->Vpositionmap_item[i][j]);
+ SDL_BlitSurface(surfaces->Pmap_mur, NULL, surfaces->screen, &positions->map_item[i][j]);
break;
case COFFRE:
- SDL_BlitSurface(surfaces->Pmap_coffre,NULL,surfaces->Pecran,&positions->Vpositionmap_item[i][j]);
+ SDL_BlitSurface(surfaces->Pmap_coffre, NULL, surfaces->screen, &positions->map_item[i][j]);
break;
case GUS:
- SDL_BlitSurface(surfaces->Pmap_perso,NULL,surfaces->Pecran,&positions->Vpositionmap_item[i][j]);
+ SDL_BlitSurface(surfaces->Pmap_perso, NULL, surfaces->screen, &positions->map_item[i][j]);
break;
}
}