summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ng-init.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-10-31 14:09:31 +0100
committerAdam Borowski <kilobyte@angband.pl>2011-10-31 14:09:31 +0100
commit8a8e775baf8187fc9bff259d7ea992c29638a5fe (patch)
tree734cfa85ea97d54970c71cc9364fcd39a4d7c9f2 /crawl-ref/source/ng-init.cc
parentb73196b72f80e92abd1536af8a942a5805d6fdbc (diff)
downloadcrawl-ref-8a8e775baf8187fc9bff259d7ea992c29638a5fe.tar.gz
crawl-ref-8a8e775baf8187fc9bff259d7ea992c29638a5fe.zip
Remove no longer necessary casts after random_choose().
Diffstat (limited to 'crawl-ref/source/ng-init.cc')
-rw-r--r--crawl-ref/source/ng-init.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/ng-init.cc b/crawl-ref/source/ng-init.cc
index 52b31d8ebf..1a9103f67a 100644
--- a/crawl-ref/source/ng-init.cc
+++ b/crawl-ref/source/ng-init.cc
@@ -70,8 +70,7 @@ void initialise_branch_depths()
// Disable one of the Swamp/Shoals/Snake Pit.
const branch_type disabled_branch =
- static_cast<branch_type>(
- random_choose(BRANCH_SWAMP, BRANCH_SHOALS, BRANCH_SNAKE_PIT, -1));
+ random_choose(BRANCH_SWAMP, BRANCH_SHOALS, BRANCH_SNAKE_PIT, -1);
dprf("Disabling branch: %s", branches[disabled_branch].shortname);
branches[disabled_branch].startdepth = -1;