summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-25 19:07:55 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-25 19:07:55 +0000
commit7b4bf560e594279a0859b30a89f65b2bb251acb0 (patch)
tree53898cdf9f12bd617318b97f06f6943a0e547752 /crawl-ref/source
parent2f0b625123166e664997f6e54cfc52cf93ce9494 (diff)
downloadcrawl-ref-7b4bf560e594279a0859b30a89f65b2bb251acb0.tar.gz
crawl-ref-7b4bf560e594279a0859b30a89f65b2bb251acb0.zip
Fix runaway skill training.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6681 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r--crawl-ref/source/skills.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/skills.cc b/crawl-ref/source/skills.cc
index a48357f573..c30b8810c9 100644
--- a/crawl-ref/source/skills.cc
+++ b/crawl-ref/source/skills.cc
@@ -306,10 +306,10 @@ static int _exercise2(int exsk)
{
int fraction = (spending_limit * 10) / skill_change;
- deg *= fraction;
+ deg = (deg * fraction) / 10;
if (deg == 0)
- bonus *= fraction;
+ bonus = (bonus * fraction) / 10;
}
else
deg = ((skill_change / 2) > MAX_SPENDING_LIMIT) ? 5 : 10;