summaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
Diffstat (limited to 'render.c')
-rw-r--r--render.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/render.c b/render.c
index 5f3484d..238dd5a 100644
--- a/render.c
+++ b/render.c
@@ -89,16 +89,16 @@ void render(SDL_Renderer* renderer, struct level_struct *currentlevel)
&pixmap_crop,
&destination);
if (ret < 0 ) {
- printf("Error (SDL): %s: %s\n", "could not render copy tiles", SDL_GetError());
+ printf("Error (SDL): %s: %s\n", "could not render copy tiles", SDL_GetError());
}
}
}
- /// Entity drawing
+ // Entity drawing
// First of all the character
get_pixmap_lemon( currentlevel->player_face, &pixmap_crop );
- destination.x = currentlevel->px * TILE_SIZE;
- destination.y = currentlevel->py * TILE_SIZE;
+ destination.x = currentlevel->px;
+ destination.y = currentlevel->py;
// Render onto screen
SDL_RenderCopy(renderer, currentlevel->entities,