Browse Source

Fixed 'soundeffectall' not reading its params correctly, since r10844 (bugreport:1627).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12766 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage 17 years ago
parent
commit
9568930e99
2 changed files with 7 additions and 7 deletions
  1. 1 1
      Changelog-Trunk.txt
  2. 6 6
      src/map/script.c

+ 1 - 1
Changelog-Trunk.txt

@@ -4,9 +4,9 @@ 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/06/07
 2008/06/07
+	* Fixed 'soundeffectall' not reading its params correctly [ultramage]
 	* Fixed PF_DOUBLECASTING casting % bugreport:140 
 	* Fixed PF_DOUBLECASTING casting % bugreport:140 
 	* Fixed a few properties of NPC_CHANGEUNDEAD bugreport:79 [Brainstorm]
 	* Fixed a few properties of NPC_CHANGEUNDEAD bugreport:79 [Brainstorm]
-
 2008/06/01
 2008/06/01
 	* Added Ai4rei's "gm can view all players' equips" feature [ultramage]
 	* Added Ai4rei's "gm can view all players' equips" feature [ultramage]
 2008/05/31
 2008/05/31

+ 6 - 6
src/map/script.c

@@ -10403,13 +10403,13 @@ BUILDIN_FUNC(soundeffectall)
 		map_foreachinmap(soundeffect_sub, map_mapname2mapid(map), BL_PC, name, type);
 		map_foreachinmap(soundeffect_sub, map_mapname2mapid(map), BL_PC, name, type);
 	}
 	}
 	else
 	else
-	if(script_hasdata(st,9))
+	if(script_hasdata(st,8))
 	{	// specified part of map
 	{	// specified part of map
-		const char* map = script_getstr(st,5);
-		int x0 = script_getnum(st,6);
-		int y0 = script_getnum(st,7);
-		int x1 = script_getnum(st,8);
-		int y1 = script_getnum(st,9);
+		const char* map = script_getstr(st,4);
+		int x0 = script_getnum(st,5);
+		int y0 = script_getnum(st,6);
+		int x1 = script_getnum(st,7);
+		int y1 = script_getnum(st,8);
 		map_foreachinarea(soundeffect_sub, map_mapname2mapid(map), x0, y0, x1, y1, BL_PC, name, type);
 		map_foreachinarea(soundeffect_sub, map_mapname2mapid(map), x0, y0, x1, y1, BL_PC, name, type);
 	}
 	}
 	else
 	else