Browse Source

Fixed a mistake in r11991 that let knockback work through walls

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12010 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage 17 years ago
parent
commit
c29f4e1823
2 changed files with 3 additions and 2 deletions
  1. 1 0
      Changelog-Trunk.txt
  2. 2 2
      src/map/path.c

+ 1 - 0
Changelog-Trunk.txt

@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 
 2008/01/04
 2008/01/04
+	* Fixed a mistake in r11991 that let knockback work through walls
 	* Modified the map_setcell() code to to use a boolean flag instead of
 	* Modified the map_setcell() code to to use a boolean flag instead of
 	  needing SET_ / CLR_ pairs of defines (topic:174323) [ultramage].
 	  needing SET_ / CLR_ pairs of defines (topic:174323) [ultramage].
 	  Also removed script object 'setcell', added script function 'setcell'
 	  Also removed script object 'setcell', added script function 'setcell'

+ 2 - 2
src/map/path.c

@@ -180,9 +180,9 @@ int path_blownpos(int m,int x0,int y0,int dx,int dy,int count)
 				else
 				else
 					dy=0;
 					dy=0;
 			}
 			}
-			else if( !fx )
+			if( !fx )
 				dx=0;
 				dx=0;
-			else if( !fy )
+			if( !fy )
 				dy=0;
 				dy=0;
 		}
 		}