summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-23 00:04:10 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-23 00:04:10 +0000
commitfe2cf67955b114452ffb216d973d485217ac055b (patch)
treea1a0d53a3219b0e58351b90204eaa624e6cf305a
parentd353fcc5447fb98064e086754a36d324155bf3ea (diff)
downloadhercules-fe2cf67955b114452ffb216d973d485217ac055b.tar.gz
hercules-fe2cf67955b114452ffb216d973d485217ac055b.tar.bz2
hercules-fe2cf67955b114452ffb216d973d485217ac055b.tar.xz
hercules-fe2cf67955b114452ffb216d973d485217ac055b.zip
- Fixed @autoloot being off by 0.01% when entering a manual value.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7303 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/atcommand.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index b85dce1ec..464717a73 100644
--- a/Changelog-Trunk.txt
+++ b/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]
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 943676876..09886dfad 100644
--- a/src/map/atcommand.c
+++ b/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)