diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-01-11 01:55:32 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-01-11 01:55:32 +0100 |
commit | d590bfdcdfa8799439cffa41fc74346e9923b6e7 (patch) | |
tree | e171fd414935877fd3ddd1f79204dac22368e32d /map.c | |
parent | b37b127792e09cb7148200e0bccf294892e9a889 (diff) |
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 <duskcoder@gmail.com>
Diffstat (limited to 'map.c')
-rw-r--r-- | map.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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; } } |