فهرست منبع

- Fixed @lvup commmand raising levels when you specify a negative value...

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5285 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 19 سال پیش
والد
کامیت
66560a7f83
2فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 3 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/atcommand.c

+ 3 - 0
Changelog-Trunk.txt

@@ -3,6 +3,9 @@ Date	Added
 AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.  EVERYTHING ELSE
 GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS
+2006/02/15
+	* Fixed @lvup command adding levels instead of substracting when you
+	  specify a negative quantity. [Skotlex]
 2006/02/14
 	* pc_setinventorydata won't use itemdb_search on empty inventory slots (id
 	  = 0) [Skotlex]

+ 1 - 1
src/map/atcommand.c

@@ -2707,7 +2707,7 @@ int atcommand_baselevelup(
 				sd->status.status_point = 0;
 			clif_updatestatus(sd, SP_STATUSPOINT);
 		} /* to add: remove status points from stats */
-		sd->status.base_level += level;
+		sd->status.base_level -= level;
 		clif_updatestatus(sd, SP_BASELEVEL);
 		clif_updatestatus(sd, SP_NEXTBASEEXP);
 		status_calc_pc(sd, 0);