diff options
Diffstat (limited to 'render.c')
-rw-r--r-- | render.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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, |