diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-06-12 17:28:09 +0200 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-06-12 17:28:09 +0200 |
| commit | e4c3f92c163dec741abeadeca80d6a938561dfb3 (patch) | |
| tree | e176989ae16f94ac5b87b76588502975964ac59c /lib | |
| parent | 34ae4649cc91bf32cd602558a4e953bc3fb8777a (diff) | |
| download | plan9front-e4c3f92c163dec741abeadeca80d6a938561dfb3.tar.xz | |
games/doom: fix desyncing demo (thanks qwx)
the code used P_Random()-P_Random() in some places which has
undefined evaluation order resulting in the wrong pseudo random
numbers being returned causing demo playback to desync.
this change adds P_Random2() function which returns the right
delta-random number and uses it in place of P_Random()-P_Random()
expression.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
