diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-10-06 17:22:40 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-10-06 17:32:13 +0200 |
commit | 1758c0df4ec8891c0f4714d2bfda0dd668fff9c9 (patch) | |
tree | 325d1eb77ce5614d2832c6f534318f33192a14b7 /crawl-ref/source/colour.cc | |
parent | ba44991f064c3db2626e787dc95d0719877c89b0 (diff) | |
download | crawl-ref-1758c0df4ec8891c0f4714d2bfda0dd668fff9c9.tar.gz crawl-ref-1758c0df4ec8891c0f4714d2bfda0dd668fff9c9.zip |
Use random3() for colour flicker and tile animations.
These get called a different number of times if the window size changes,
breaking reprocibility of games with the same random seed.
Diffstat (limited to 'crawl-ref/source/colour.cc')
-rw-r--r-- | crawl-ref/source/colour.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/colour.cc b/crawl-ref/source/colour.cc index 3d9a7a44a8..f128afe716 100644 --- a/crawl-ref/source/colour.cc +++ b/crawl-ref/source/colour.cc @@ -45,7 +45,7 @@ protected: int element_colour_calc::rand(bool non_random) { - return non_random ? 0 : random2(120); + return non_random ? 0 : random3(120); } int element_colour_calc::get(const coord_def& loc, bool non_random) |