summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/traps.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/traps.cc')
-rw-r--r--crawl-ref/source/traps.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/traps.cc b/crawl-ref/source/traps.cc
index d84005a239..d2d2d30dbf 100644
--- a/crawl-ref/source/traps.cc
+++ b/crawl-ref/source/traps.cc
@@ -1112,10 +1112,11 @@ static trap_type random_trap_default(int level_number, const level_id &place)
// Note we're boosting arrow trap numbers by moving it
// down the list, and making spear and axe traps rarer.
- if (type == TRAP_DART?
- random2(1 + level_number) > 2
- : one_chance_in(7))
+ if (type == TRAP_DART ? random2(1 + level_number) > 2
+ : one_chance_in(7))
+ {
type = TRAP_ARROW;
+ }
if ((type == TRAP_DART || type == TRAP_ARROW) && one_chance_in(15))
type = TRAP_NET;