shithub: cstory

Download patch

ref: bda9fc391a26457f32b0b648e6bbe1698722eeaa
parent: 6635cc58ed1fa30dff5d25b8b96bb29e4580068c
author: Gabriel Ravier <gabravier@gmail.com>
date: Tue Nov 5 11:59:53 EST 2019

Documentation : Comment redundant if

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

--- a/src/NpcAct040.cpp
+++ b/src/NpcAct040.cpp
@@ -1122,7 +1122,7 @@
 				npc->tgt_x = npc->x;
 				npc->tgt_y = npc->y;
 
-				if (npc->direct == 0)
+				if (npc->direct == 0)	// Completely redundant as both the conditions are the same
 					npc->ym = 0x400;
 				else
 					npc->ym = 0x400;