Commit Graph

73 Commits (openmw-36)

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
scrawl 3879ce6ac1 Get rid of "player" string checks (Fixes #2216) 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 ad8790fba0 Fix setWaterLevel script instruction not affecting physics 10 years ago
scrawl 855fe33c59 Add vanilla-compatible range limiting for playloopsound (Fixes #244, Fixes #1342) 10 years ago
scrawl fbed429b25 Use GMSTs for sound fading distance 10 years ago
scrawl 9edcc332ec Don't remove player's sounds when unloading a cell 10 years ago
scrawl 45af34d189 Merge branch 'master' of https://github.com/OpenMW/openmw 11 years ago
scrawl 598c0c4ae7 Implement mouth animation for NPCs based on say sound (Fixes #642) 11 years ago
bogglez b56cb7e5ee Remove defunct option for building without FFmpeg
- Added REQUIRED to find_package(FFmpeg)
- Removed USE_FFMPEG option from CMakeLists.txt
- Always use FFmpeg for sound input
- Removed SOUND_DEFINE from CMakeLists.txt
- Removed #else branch from videoplayer.cpp with dummy VideoState code
  (FFmpeg is now guaranteed to exist and the code was incomplete)
- Remove #ifdef OPENMW_USE_FFMPEG in ffmpeg_decoder.cpp, it is guaranteed to be used
- Remove #ifdef OPENMW_USE_FFMPEG from soundmanagerimp.cpp, it is guaranteed to be used
11 years ago
scrawl 7b1e1d03d8 Merge branch 'master' of https://github.com/OpenMW/openmw
Conflicts:
	apps/openmw/mwrender/sky.hpp
11 years ago
scrawl 09926a86cb Fix comparing outdated listener position with up-to-date cell (Fixes #1499) 11 years ago
slothlife 9ea22324f7 Fix some MSVC warnings.
Several fixes are warnings about truncations on 64-bit, while others are
complaints about mixed signed / unsigned integer operations.
11 years ago
scrawl be6f1fe4fe Fix a sign error 11 years ago
scrawl d970cc06d7 Don't play the same music track twice in a row (Fixes #746) 11 years ago
Marc Zinnschlag f7c89015f9 Merge remote-tracking branch 'scrawl/master' 11 years ago
scrawl e5a21aca53 Refactor projectiles to no longer use MW-objects 11 years ago
slothlife f33559fead Fixes for MSVC warnings, less overall changes
Kept some fixes from the first round of review. Found out that several
targets weren't being built with the same basic warnings disabled.
Disabled a few warnings for external libraries specifically, rather than
applying them to all targets.
11 years ago
slothlife c160a04ede Revert "Fixes for warnings when building with MSVC"
This reverts commit 46eb20b98c.
11 years ago
slothlife 46eb20b98c Fixes for warnings when building with MSVC
Most warnings are innocuous (wrong type-specifier for forward
declarations, conversion of literals into unsigned integers, warnings
about methods optimized out), but I believe actual bugs were revealed in
vartypedelegate.cpp and combat.cpp.
11 years ago
Thoronador 620a8ccaf3 remove Audiere and MPG123+Sndfile decoder sources 11 years ago
Thoronador 1b8c975d5b minor performance improvements in apps/openmw
Checking for emptiness using size() might be inefficient, because
it can take linear time, while empty() is guaranteed to take only
constant time.

For non-primitive types, postfix ++ operators are inefficient
compared to prefix ++ operators, because post-increment usually
involves keeping a copy of the previous value around.
11 years ago
Marc Zinnschlag 367919200f moved CellRefList into a separate file 11 years ago
Marc Zinnschlag 7693f712bc started making CellStore into a proper class; encapsulated mCell member 11 years ago
Marc Zinnschlag 1b5301eec0 Merge branch 'savedgame'
Conflicts:
	apps/openmw/mwbase/mechanicsmanager.hpp
	apps/openmw/mwbase/soundmanager.hpp
	apps/openmw/mwgui/mapwindow.hpp
	apps/openmw/mwmechanics/actors.cpp
	apps/openmw/mwmechanics/mechanicsmanagerimp.hpp
	apps/openmw/mwsound/soundmanagerimp.hpp
	components/esm/loadcell.cpp
11 years ago
scrawl 03cf383be7 Merge branch 'master' of https://github.com/zinnschlag/openmw into savedgame
Conflicts:
	apps/openmw/mwgui/referenceinterface.cpp
	apps/openmw/mwmechanics/actors.cpp
	apps/openmw/mwmechanics/mechanicsmanagerimp.cpp
	apps/openmw/mwmechanics/mechanicsmanagerimp.hpp
	apps/openmw/mwscript/cellextensions.cpp
	apps/openmw/mwworld/cells.cpp
	apps/openmw/mwworld/cells.hpp
	apps/openmw/mwworld/cellstore.cpp
	apps/openmw/mwworld/store.cpp
	apps/openmw/mwworld/worldimp.cpp
11 years ago
Marc Zinnschlag 9ebe66e693 improved cleanup; failed loads will now drop back into the main menu instead of crashing 11 years ago
Marc Zinnschlag 0f60898517 adding missing cleanup for SoundManager 11 years ago
scrawl ba5300b071 Update the Ptr in SoundManager for references moved to a different cell. Fixes looping sounds not stopping after a moved object was already deleted. 11 years ago
scrawl e410eb5273 Play 'Idle' voiced dialogue entries in AIWander. Tweak voice max distance. 11 years ago
scrawl 2196ce427a Closes #556: Link movie volume to 'master' volume slider, instead of 'music'. 11 years ago
scrawl 098f9712f1 Add getPlayerPtr() utility method. Reduces dependencies a lot. 11 years ago
scrawl 62774fcc4a Merge branch 'master' into HEAD
Conflicts:
	apps/openmw/mwbase/world.hpp
	apps/openmw/mwinput/inputmanagerimp.cpp
	apps/openmw/mwmechanics/actors.cpp
	apps/openmw/mwworld/worldimp.cpp
	apps/openmw/mwworld/worldimp.hpp
	components/esm/loadtes3.cpp
11 years ago
scrawl 531bef6193 Shorter Vector3 initialisation 11 years ago
Marc Zinnschlag e818d43bc3 removed an outdated typedef and some dead code 11 years ago
Chris Robinson f216b25be8 Slightly randomize time between environment sounds
We should use the "Minimum Time Between Environmental Sounds" and
"Maximum Time Between Environmental Sounds" INI/fallback settings, but we don't
have them.
12 years ago
Chris Robinson 02df8ab841 Store the underwater sound to easily stop it 12 years ago
Chris Robinson 16331bf1ed Avoid a hack to play the underwater sound properly 12 years ago
PLkolek 86020ad94d Added underwater and drowning sounds. 12 years ago
Marc Zinnschlag 5cafe65cd7 Merge remote-tracking branch 'scrawl/cppcheck' 12 years ago
scrawl 7dc30a01cd Some changes suggested by cppcheck 12 years ago
PLkolek f297c21e4d Old door sound fades out on door open/close. Door sound is synchronised to angle on action. 12 years ago
scrawl 90a5d8b6f5 Fix uninitialized AL listener position/orientation when the game is paused during the first frame 12 years ago
Chris Robinson f73008546f Keep a sound updated with its object's position 12 years ago
Chris Robinson ad6d663e09 Remove some unnecessary debug messages 12 years ago
Chris Robinson 14e0c182f3 Allow specifying the sound type to playSound and playSound3D 12 years ago
scrawl 48a88f1917 Fix startRandomTitle 12 years ago
Chris Robinson ceafcc2ebb Support float samples with ffmpeg
Requires the AL_EXT_FLOAT32 extension in OpenAL
12 years ago
Chris Robinson 8a073c113e Use const references where appropriate 12 years ago
Chris Robinson 7b2c3e6cd3 Pass a proper PlayMode enum to playSound and playSound3D 12 years ago