From cfd90c27c151c8b750ca34c15cb308139584e3fd Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 8 Mar 2018 07:53:57 +0000 Subject: [PATCH] Don't move start position when carrying item. --- src/entities/unit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entities/unit.c b/src/entities/unit.c index 57bcb97..c3e01ec 100644 --- a/src/entities/unit.c +++ b/src/entities/unit.c @@ -136,8 +136,8 @@ static void tick(void) if (u->carriedItem != NULL) { - u->carriedItem->x = u->carriedItem->startX = u->x; - u->carriedItem->y = u->carriedItem->startY = u->y; + u->carriedItem->x = u->x; + u->carriedItem->y = u->y; } }