shithub: cstory

Download patch

ref: 002e0f77605f73311d35f335c8895b855c2ebdf0
parent: 58a02a609cbb96dc11f5f31943b558e7adf3ce3b
author: Gabriel Ravier <gabravier@gmail.com>
date: Sun Sep 15 12:00:06 EDT 2019

Changed erroneous "=" to "+="

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>

--- a/src/NpChar.h
+++ b/src/NpChar.h
@@ -17,7 +17,7 @@
 
 #define NPC_UPDATE_POSITIONS_WITH_VELOCITIES(npc) \
 	npc->x += npc->xm; \
-	npc->y = npc->ym
+	npc->y += npc->ym
 
 #define NPC_SET_RECT_FROM_LEFT_RIGHT(npc, rcLeft, rcRight) \
 	if (npc->direct == DIR_LEFT) \