• dteviot's avatar
    consolidate random number logic · 4b0aeb40
    dteviot authored
    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 3f28634d)
    
    # 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
    4b0aeb40
npc.cpp 48.9 KB