1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 08:53:52 +00:00
openmw/components
dteviot 4b0aeb4066 consolidate random number logic
Note, I suspect Rng::rollClosedProbability() is not needed.  The only difference between it and rollProbability() is that one time in 37k (on Windows), it will give an output of 1.0.
On some versions of Linux, the value of 1.0 will occur about 1 time in 4 billion.

(cherry picked from commit 3f28634d1f)

# Conflicts:
#	apps/openmw/mwclass/creature.cpp
#	apps/openmw/mwclass/npc.cpp
#	apps/openmw/mwgui/pickpocketitemmodel.cpp
#	apps/openmw/mwgui/waitdialog.cpp
#	apps/openmw/mwmechanics/combat.cpp
#	apps/openmw/mwmechanics/mechanicsmanagerimp.cpp
#	components/CMakeLists.txt
#	libs/openengine/misc/rng.cpp
2018-10-05 18:45:57 +10:00
..
autocalc Address review comments. 2015-06-26 07:48:48 +10:00
bsa Move resource names listing code out of CSMWorld::Resources ctor in order to avoid multiple scan of the same resources. 2015-12-19 17:39:02 +11:00
compiler fixed an interference with script warning mode and error downgrading (Fixes #2990) 2015-12-05 06:40:10 +11:00
config Update to keeping config comments (Feature #2535) 2015-08-01 13:25:35 +10:00
contentselector Rebuild the list of available content files when opening the open/new dialogues. Should resolve Bug #2644. 2015-06-16 12:48:45 +10:00
esm Minor performance gains on loading cell references. 2015-12-19 17:54:45 +11:00
esmterrain Not found Land Textures are no longer a fatal error (Bug #3037) 2015-12-05 18:14:55 +11:00
files Fix tab indentations in apps/ and components/ 2015-11-01 21:34:23 +11:00
fontloader Rename variable to not show up in search for "TODO" comments. 2015-03-12 00:21:46 +01:00
interpreter deal with script execution from within a script (Fixes #2964) 2015-11-01 22:48:38 +11:00
loadinglistener Tests: add dialogue_merging_test (requires some data files) 2015-12-05 11:26:24 +11:00
misc Reduce the call to tolower() for each character when the string is already in lower case. 2015-12-19 18:50:07 +11:00
nif Silence -Wreorder warnings. 2015-04-28 18:48:02 -05:00
nifbullet Revert "Use btScaledBvhTriangleMeshShape, bump required bullet version to 2.83" 2015-05-10 13:35:21 +02:00
nifcache Moved functions from niffile.cpp to where they belong. 2014-08-24 13:45:36 -04:00
nifogre Silence -Wreorder warnings. 2015-04-28 18:48:02 -05:00
nifoverrides Extend NifOverrides to allow material overrides, useful for texture modding e.g. adding normal maps without having to edit the affected meshes 2014-01-05 18:09:50 +01:00
ogreinit Fix Ogre being initialised twice 2014-11-19 13:19:02 +01:00
process OSX build fix 2014-11-20 18:14:49 +01:00
settings Support MSVC 2015. Tested(*) with updated dependencies: 2015-08-12 06:50:22 +10:00
terrain Support MSVC 2015. Tested(*) with updated dependencies: 2015-08-12 06:50:22 +10:00
to_utf8 Remove some outdated todo comments 2015-03-12 00:27:01 +01:00
translation Fix cppcheck issues 2014-09-26 17:48:14 +02:00
version Distinguish between release and development builds 2014-01-23 13:18:05 +01:00
widgets Some minor changes to MWList 2015-06-02 11:55:09 +03:00
CMakeLists.txt consolidate random number logic 2018-10-05 18:45:57 +10:00
doc.hpp second set of additional doxygen comments 2010-09-25 20:15:05 +02:00