Parcourir la source

- Fixed @autoloot being off by 0.01% when entering a manual value.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7303 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex il y a 19 ans
Parent
commit
3296652856
2 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 2 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/atcommand.c

+ 2 - 0
Changelog-Trunk.txt

@@ -4,6 +4,8 @@ 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.
 
 2006/06/22
+	* Fixed @autoloot being off by 0.01% when entering a manual value.
+	  [Skotlex]
 	* Restored the "Secret" behaviour of Blast Mine and Claymore Trap where
 	  each target is hit N times (where N is the number of mobs in the splash
 	  area at the moment of triggering). [Skotlex]

+ 1 - 1
src/map/atcommand.c

@@ -7738,7 +7738,7 @@ int atcommand_autoloot(const int fd, struct map_session_data* sd, const char* co
 	}
 
 	// get maximum droprate limit
-	rate = (int)(atof(message) * 100);
+	rate = (int)(atof(message) * 100.);
 
 	// check for invalid value
 	if(rate > 10000)