diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-08 07:52:36 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-08 07:52:36 +0000 |
commit | cebfd4f93efdfe6cc517f1bda0a59699a8149d3e (patch) | |
tree | 6793a9eed2d7ba84c0c1577c7b85ac20ad6058b9 /crawl-ref/source/stuff.cc | |
parent | e94375e1a0ecdbfa3032609c29a42eb071d3682a (diff) | |
download | crawl-ref-cebfd4f93efdfe6cc517f1bda0a59699a8149d3e.tar.gz crawl-ref-cebfd4f93efdfe6cc517f1bda0a59699a8149d3e.zip |
Apply previous fixes to 0.4.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6450 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stuff.cc')
-rw-r--r-- | crawl-ref/source/stuff.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc index 6fef267f58..2ab5cec604 100644 --- a/crawl-ref/source/stuff.cc +++ b/crawl-ref/source/stuff.cc @@ -868,7 +868,7 @@ bool one_chance_in(int a_million) bool x_chance_in_y(int x, int y) { - if (x <= 0 || y <= 0) + if (x <= 0) return (false); if (x >= y) |