From d590bfdcdfa8799439cffa41fc74346e9923b6e7 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sun, 11 Jan 2015 01:55:32 +0100 Subject: renamed the rects inside the struct positions it is redundant in thus inconvenient to repeat 'position' inside a structure named position. Signed-off-by: Olivier Gayot --- map.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'map.c') 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; } } -- cgit v1.2.3