Commit Graph

2080 Commits (celladd)

Author SHA1 Message Date
dteviot 3f28634d1f 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.
10 years ago
cc9cii 4d46d7ba72 Fix some compiler warnings. 10 years ago
Marc Zinnschlag f0a7b202b9 Merge branch 'openmw-35-1' 10 years ago
Marc Zinnschlag 056bc66c6c Merge remote-tracking branch 'scrawl/master' 10 years ago
scrawl 3879ce6ac1 Get rid of "player" string checks (Fixes #2216) 10 years ago
scrawl 48ea6286fd Book/scroll window refactoring 10 years ago
scrawl 37a6d7da76 WindowManager refactoring 10 years ago
Scott Howard e2ef8c4022 fix -Wnewline-eof warnings 10 years ago
dteviot ca8c8c6aa4 fixing MSVC 2013 warning C4244: & C4305
conversion from 'const float' to 'int', possible loss of data
conversion from 'double' to 'int', possible loss of data
conversion from 'float' to 'int', possible loss of data
10 years ago
dteviot e6cd8484a2 fixing MSVC 2013 warning C4244: & C4305
fixes for mistakes in last commit.
10 years ago
dteviot e197f5318b fixing MSVC 2013 warning C4244: & C4305
conversion from 'const float' to 'int', possible loss of data
conversion from 'double' to 'int', possible loss of data
conversion from 'float' to 'int', possible loss of data
10 years ago
scrawl 58807064b4 Revert "Fix reference cell movement leaving behind deleted Ptrs for script access"
This reverts commit 666248618e.
10 years ago
dteviot 45b6538820 fixed MSVC 2013 warning C4800
forcing value to bool 'true' or 'false'
10 years ago
dteviot 407cd50890 fixed warning C4099:
type name first seen using 'class' now seen using 'struct'
10 years ago
Marc Zinnschlag bf92d5cde9 removed redundant mScript field in ESM::StartScript 10 years ago
scrawl f09cbfb167 Add a comment 10 years ago
scrawl 666248618e Fix reference cell movement leaving behind deleted Ptrs for script access 10 years ago
scrawl 8eb1f4e70e Remove more log spam 10 years ago
scrawl e3f1cb8305 Remove "loading cell" message
This spams the log too much, in particular when loading a savegame.
10 years ago
Marc Zinnschlag 8b84fa5579 Merge remote-tracking branch 'scrawl/master' 10 years ago
scrawl 239c0071f5 Armor tooltip should show the effective armor rating 10 years ago
scrawl 2f2a95f735 Fix crash for terrain without data, part 2 10 years ago
sylar cda3782cf2 fix crash game on Android after start loading 10 years ago
Marc Zinnschlag 281e0042ab Merge remote-tracking branch 'scrawl/master' 10 years ago
scrawl e7989a197d Add defaults for some required globals (Fixes #2397) 10 years ago
Jordan Ayers 659a8ba279 Correction to teleportation changes.
OMW Bug #2400
Related to OMW Bug #1533

Don't crash on confiscating items if a prison marker cannot be found.
10 years ago
Jordan Ayers 691ebd2372 Correction to teleportation changes.
OMW Bug #2400
Related to OMW Bug #1533

Don't crash when finding the closest marker to an exterior position.
10 years ago
scrawl 24de6ba27e Fix crash for LAND records without data 10 years ago
Marc Zinnschlag 8e007c91fd Merge remote-tracking branch 'jordan-ayers/bugfix/1533' 10 years ago
Jordan Ayers 5edafc2a4c Cleanup: Add const to read-only CellRefList access.
OMW Bug #1533
10 years ago
Jordan Ayers 399259a95c Improve CellStore exception messages. 10 years ago
Jordan Ayers c21b59ecff Teleportation: Avoid marking searched cells as changed.
OMW Bug #1533
Only mark cells with the target marker / evidence chest as 'changed'.
10 years ago
Marc Zinnschlag 4c5bba2947 Merge remote-tracking branch 'dteviot/SpellCastingFixes' 10 years ago
dteviot 6e2d6a0282 Minor correction, MWWorld::getMaxActivationDistance() is now public. 10 years ago
dteviot 8d7de7d1ec Telekinesis allows safe opening of traps (Fixes #1916)
When trap activated at beyond normal activation distance, assume telekinesis used and detonate trap at trapped object's location.
Also some minor code refactoring of spellcasting.
1. Corrected parameter passed to explodeSpell().
2. For loop now correctly does an early exit.
3. Removed duplicated tests.
10 years ago
Jordan Ayers 6d1aec6970 Confiscate stolen goods: Support Mournhold prisons.
OMW Bug #1533
10 years ago
Jordan Ayers 5ef78903dc Teleportation: Support markers in Mournhold.
OMW Bug #1533
Note:  the 'stolen goods' search is not yet correct for Mournhald.
10 years ago
Jordan Ayers 1d18d3ff4c Add a full search to findInteriorPositionInWorldSpace.
Part of OMW Bug #1533
Implement a search for one of the 'nearest' exterior cells.  In this
case, 'nearest' means the fewest number of cells away via door markers.
This causes the world map position to update immediately after teleporting,
unless the new cell has no connecting path to an exterior.  Intervention
spells and Jail travel will be much closer to vanialla Morrowind,
except for in Mournhold.
10 years ago
Marc Zinnschlag 2b619296d7 Merge remote-tracking branch 'scrawl/master' 10 years ago
scrawl 3ccf4642b4 Implement ToggleScripts 10 years ago
Alexander "Ace" Olofsson 1a19253158 Fix MSVC build due to missing M_PI define
Apparently the header guard on cmath only adds the defines if _USE_MATH_DEFINES is defined when cmath is included for the first time.

So enabling that define and moving cmath up to be the first include, so that nothing else includes it without the define set.
10 years ago
scrawl 801c0eb57c Detect Creature should detect alive creatures only (Fixes #2353) 10 years ago
scrawl c27c20a859 Merge remote-tracking branch 'upstream/openmw-35' into HEAD
Conflicts:
	files/materials/water.shader
10 years ago
scrawl dbd4abd6fe Fix ripples for D3D - added simpler effect (Fixes #1649) 10 years ago
Marc Zinnschlag e9d6e4f6df Merge remote-tracking branch 'ace/include-cleanup' 10 years ago
Marc Zinnschlag 985f7cbff9 Merge remote-tracking branch 'miroslavr/master' 10 years ago
Alexander "Ace" Olofsson 8c49812d56 Remove unneeded include in obstacle.hpp 10 years ago
Alexander "Ace" Olofsson df5a08b6de Move manualref code out of header 10 years ago
Jordan Ayers ec3487b669 Sun trajectory: handle mNightStart <= mSunriseTime
OMW Bug #781
Note:  mNightStart == mSunriseTime is treated as 24-hour night.
10 years ago
scrawl e81d2a9dde Merge remote-tracking branch 'upstream/openmw-35' into HEAD
Conflicts:
	apps/openmw/mwmechanics/npcstats.cpp
10 years ago