gfgtdf
45c2a5aa0e
fix mt_rng::rotate_random
...
previously it would write the wrong random state after advancing to a new scenario, so that the first reload after advancing to a new scenario would change the deteministic rng.
2019-03-19 01:17:50 +01:00
Martin Hrubý (hrubymar10)
674fda85b7
Migrate links to https if available - Fwd c18537edc0
...
(cherry-picked from commit bc4d22dc72
)
2018-10-07 03:23:36 +00:00
Charles Dang
a7f6862210
More include cleanups
...
Cleaned up unnecessary inclusions of:
* event.hpp
* exceptions.hpp
* formatter.hpp
* hash.hpp
* image.hpp
* sound.hpp
* team.hpp
* tstring.hpp
* wml_exception.hpp
2018-03-11 23:22:02 +11:00
Charles Dang
950a156712
Addressed most of the remaining whitespace issues from #2613
...
[ci skip]
2018-03-11 14:59:37 +11:00
Gregory A Lundberg
b5f76eff79
Bump copyright to 2018
2018-01-19 00:02:20 -06:00
Charles Dang
a1702d52e7
Merge rand_rng namespace with randomness
2017-04-21 08:00:52 +11:00
Charles Dang
43edb92537
Fixup 42b309165a
...
get_next_random() had the side effect of also bumping random_calls_.
2017-04-21 07:58:35 +11:00
Charles Dang
42b309165a
mt_rng: made use of std::mersenne_twister_engine::discard
...
The issue described seemed to be with the boost version, so it should be fixed (hopefully) with the std version
2017-04-20 08:14:00 +11:00
Celtic Minstrel
b4dc11ce36
Belated 2017 copyright update
2017-03-19 10:05:38 -04:00
Charles Dang
62f3502cf3
Add std::dec after std::hex when necessary
2016-08-06 09:40:11 +11:00
Charles Dang
6130c668c4
Use cleaner format for formatter() when possible
2016-08-05 11:58:42 +11:00
Charles Dang
d778db8af6
Convert uses of boost integer types to their stdlib equivalents
2016-07-29 23:18:10 -04:00
Chris Beck
ba51524f6e
update copyright to year 2016
...
using this shell script:
find src -type f -print0 | xargs -0 sed -i "s|Copyright (C) \([[:digit:]]*\)\([ ]*\)-\([ ]*\)2015|Copyright (C) \1\2-\32016|g"
2016-01-02 23:59:31 -05:00
Elvish_Hunter
9b7b1751fd
Removed trailing tabs and whitespaces from C++ source
...
I used this command line: find <source directory> -name \*.\[ch\]pp -print0 | xargs -0 sed -i 's/[[:blank:]]*$//'
2015-12-21 20:39:46 +01:00
Chris Beck
c10ddf275e
fix uninitialized failure
...
caught by valgrind (probably inconsequential though)
2015-04-06 21:28:48 -04:00
Chris Beck
ab49e328b9
fix uninitialized rng seed (reported by valgrind)
...
This probably didn't happen in practice or we would notice I think,
but it happened because of a failure to check stringstream failing
to parse a string to hex.
2015-04-06 21:20:34 -04:00
gfgtdf
38ed3a3c97
Use given seed in lua random map generator
...
Thew seed can be passed in the editor in the generate map dialog, just
like for the other generators.
2015-03-30 00:58:15 +02:00
Ignacio R. Morelle
57ae45387a
New Year copyright update
2015-01-01 19:07:35 -03:00
Chris Beck
548c5d74ae
fix a bug that caused std::hex to get written into std::cerr
...
reported by gfgtdf
2014-11-19 13:40:23 -05:00
Chris Beck
da4074e882
use boost mersenne twister rng, add boost::random dependency
...
This is a squash of work done in april, see closed github pull
request. #160
2014-11-03 11:24:24 -05:00