summaryrefslogtreecommitdiff
path: root/src/player.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.c')
-rw-r--r--src/player.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/player.c b/src/player.c
index a1c7dfc..da5c97e 100644
--- a/src/player.c
+++ b/src/player.c
@@ -47,8 +47,13 @@ void tt_player_draw()
(b->txrcol * b->anim + b->rem / b->rate % b->anim) * 16,
b->txrrow * 16, 16, 16
};
- SDL_Rect d = { 14 + b->x, 14 + b->y, 32, 32 };
- SDL_RenderCopy(ttrdr, tttxr, &s, &d);
+ if (b->isdoor) {
+ SDL_Rect d = { 14 + b->x, 14 + b->y, 32, 32 };
+ SDL_RenderCopy(ttrdr, tttxr, &s, &d);
+ } else {
+ SDL_Rect d = { 14 + b->x, 14 + b->y, 32, 32 };
+ SDL_RenderCopy(ttrdr, tttxr, &s, &d);
+ }
if (b->msg) {
SDL_Color c = { 255, 255, 255, 255 };
SDL_Surface *s = TTF_RenderText_Blended(ttfont, b->msg, c);