summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/skills.cc
diff options
context:
space:
mode:
authorPete Hurst <pete@streamuniverse.tv>2013-05-15 06:13:45 +0100
committerPete Hurst <pete@streamuniverse.tv>2013-05-19 23:01:05 +0100
commitb0b74b27d9c21a209aad7aa89a4cfd9c4ab02de5 (patch)
treebf8789a890ba0e6ef681e8bd80a890c44d8d8cc6 /crawl-ref/source/skills.cc
parent5b5d4fb47b759315ec3c2ce614e7e1de7a8ca073 (diff)
downloadcrawl-ref-b0b74b27d9c21a209aad7aa89a4cfd9c4ab02de5.tar.gz
crawl-ref-b0b74b27d9c21a209aad7aa89a4cfd9c4ab02de5.zip
Convert several instances of "and" "not" and "or" to "&&" "!" and "||" (xFleury)
These are in the standard but break on MSVC.
Diffstat (limited to 'crawl-ref/source/skills.cc')
-rw-r--r--crawl-ref/source/skills.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/skills.cc b/crawl-ref/source/skills.cc
index 149678f689..3c0a7d411e 100644
--- a/crawl-ref/source/skills.cc
+++ b/crawl-ref/source/skills.cc
@@ -1042,7 +1042,7 @@ void set_skill_level(skill_type skill, double amount)
// When reducing, we don't want to stop right at the limit, unless
// we're at skill cost level 0.
- if (reduced and you.skill_cost_level)
+ if (reduced && you.skill_cost_level)
++max_xp;
int cost = calc_skill_cost(you.skill_cost_level);