Commit Graph

191 Commits (coverity_scan)

Author SHA1 Message Date
scrawl 5dd1ab24fe More efficient StateSetController, beginnings of sky rendering 10 years ago
scrawl 4e69e7cc0f OpenMW compiles and runs w/o render window 10 years ago
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
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
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
Jordan Ayers ec3487b669 Sun trajectory: handle mNightStart <= mSunriseTime
OMW Bug #781
Note:  mNightStart == mSunriseTime is treated as 24-hour night.
10 years ago
Jordan Ayers 23024d2beb Re-work the sun's trajectory.
OMW Bug #781
Have the sun travel 15 degrees south of vertical.
10 years ago
Jordan Ayers 2d17eaa5ea Fix argument name for setSunDirection. 10 years ago
scrawl 72f7c2e555 Move weather reset to clear() method 10 years ago
scrawl c883a73d30 Several warning fixes 10 years ago
scrawl c3f3f8b3d0 Use only Cell records for saving progress bar (Fixes #2259) 10 years ago
scrawl fadbb5ad21 Add particle and sound fading for weather transitions (Fixes #2130) 10 years ago
Internecine 470d375177 Removed duplicate functions and moved pause check in weather.cpp 10 years ago
Internecine 782e851eb1 Better fix, now allows for teleporting to change weather while still paused. 10 years ago
scrawl e9ed0211c9 Attempt to fix Clang warnings 10 years ago
scrawl 002b41ba51 Make changeWeather work when the player isn't in a cell yet (workaround for modTESTchargen_v2_5) 10 years ago
MiroslavR baa14511cf Use ResourceHelpers to replace DDS hacks scattered throughout the code, fix prefix comparision 11 years ago
scrawl 07d0f4458d Rotate clouds/particles to come from red mountain (Fixes #245) 11 years ago
scrawl 7b1e1d03d8 Merge branch 'master' of https://github.com/OpenMW/openmw
Conflicts:
	apps/openmw/mwrender/sky.hpp
11 years ago
scrawl f6a568c995 Implement rain (Feature #41) 11 years ago
Marc Zinnschlag 85965bfd47 Merge remote-tracking branch 'scrawl/master' 11 years ago
scrawl 693a097b21 Implement idlestorm animation (Feature #41) 11 years ago
scrawl 36132e054a Implement ashstorm, blightstorm, snow and blizzard effects (Feature #41) 11 years ago
Fil Krynicki cfea7736d9 WIP fix
Bug is fixed, but appears to have broken vision underwater. Notes:

+ basically fixed by darkening the colour of water such that it is
darker than refracted terrain
+ also disabled sunlight scattering at night. This may actually be
desirable, but given there is no visible moon it seems unlikely to make
much sense, and blends a lot of green into the water colour appearing
luminescent at night
11 years ago
scrawl 92467ba6bc Fix sunlight for interiors 11 years ago
scrawl 27a05027f4 Fixes #1172: Added basic loading/saving progress bar
The progress is not particularly accurate. It simply uses the current / total number of records written/read as indication. Cell records are currently the largest by far, but there is a good chance that could be optimized using a change tracking system.
11 years ago
slothlife 6eab9c5179 Move weather state save/load to a new class 11 years ago
slothlife 1acd1bd913 Feature #1173: Saved Game: include weather state
Removed some unused state in and changed Ogre::String to std::string in
WeatherManager.
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
scrawl d0500e8124 Some unneeded includes cleanup 11 years ago
scrawl 098f9712f1 Add getPlayerPtr() utility method. Reduces dependencies a lot. 11 years ago
Marc Zinnschlag 1f4c192bf6 Merge remote-tracking branch 'lgro/issue417_apply_weather_instantly_when_teleporting' 11 years ago
Lukasz Gromanowski 722469d57b Correction to the e9844e1 commit.
Restored interrior check in WeatherManager::update().

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
11 years ago
Marc Zinnschlag 5fa9aa5d1e Merge remote-tracking branch 'lgro/issue417_apply_weather_instantly_when_teleporting'
Conflicts:
	apps/openmw/mwworld/weather.cpp
	apps/openmw/mwworld/worldimp.cpp
11 years ago
Lukasz Gromanowski e9844e1b37 Fixes #417: Apply weather instantly when teleporting
Changed teleporting detection from "position tracking" to manually
setting "teleportation" flag ( player->setTeleported(true) ).

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
11 years ago
scrawl 79a440e94a Many additions to 900bc06d2c236b:
- Fix indentation
 - Consider any kind of light, not just torch_infinite_time
 - Hostile NPCs should also wear lights, if they have nothing else that could use the slot (or a twohanded weapon)
 - Remove redundant code and don't add additional lights to the inventory
 - World::isDark returns false for interiors which are unaffected by weather
11 years ago
Lukasz Gromanowski faf8011c48 Fixes #417: Apply weather instantly when teleporting
Removed changing speed of weather transition introduced in previous
commit. Instead try to detect player "teleporting" (ie. coc),
and then switch instantly to the next weather type.

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
11 years ago
Lukasz Gromanowski 100edda8c0 Fixes #417: Apply weather instantly when teleporting
Change speed of weather transition from blight to other (twice fast as normal)
and from other to blight (four times faster than normal).

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
11 years ago
Lukasz Gromanowski 91a4d9a2eb Fixes #845: NPCs hold torches during the day
Added method in WeatherManger and World which returns true if it is night.
This method is used later in character controller to show torches
(or other sources of light) at night and hide them at day.

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
11 years ago
Lukasz Gromanowski bfd79bfbe6 Various fixes for CppCheck warnings.
Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
11 years ago
scrawl c8e31725dc Fix weather sounds persisting on a new game 12 years ago
scrawl 6164e5bae6 Restored window resizing 12 years ago
Chris Robinson c94653dc49 Implement the ModRegion script function 12 years ago
Chris Robinson 14e0c182f3 Allow specifying the sound type to playSound and playSound3D 12 years ago
Marc Zinnschlag cd538538b5 fixed weather code 12 years ago
Marc Zinnschlag 8b909ff838 killed a stray srand 12 years ago
Miroslav Puda 8da3494d74 Revert "Type of weather changed from string to enum."
This reverts commit 04d90b4c47.

Conflicts:
	apps/openmw/mwworld/weather.cpp
	apps/openmw/mwworld/weather.hpp
12 years ago
Miroslav Puda 26a6bdb27d Correction of sigsegv. 12 years ago
Miroslav Puda f9940413fd Static for nextWeather() 12 years ago
Miroslav Puda bf31e5385c Removal of duplicit exterior checking and unneded string copiing. 12 years ago
Miroslav Puda 8a45686e0a WeatherResult added as member variable. 12 years ago
Miroslav Puda f01aa8f55e Simpler statistical calculation of next weather; minus before parens. 12 years ago
Miroslav Puda 04d90b4c47 Type of weather changed from string to enum. 12 years ago
Glorf 9fa2dd5277 Playing with moons part 2 12 years ago
Glorf 6aaa8d6dc0 Fixed fading problem 12 years ago
Glorf 9cc85cbe81 Playing with moons part 1 12 years ago
Glorf 6417fa504e Fixed constness 12 years ago
Glorf c605f15a15 Another weather cleanup 12 years ago
Glorf 68f249e8f4 Small weather cleanup 12 years ago
scrawl 67422c397c GetWindSpeed 12 years ago
Marc Zinnschlag 738a54337d removed redundant case smashing 12 years ago
scrawl fdf80c1c4f Fix unused variable 12 years ago
scrawl db78d15fc4 Fix changeWeather 12 years ago
scrawl 2509b34ace Enabled bloodmoon weather 12 years ago
scrawl 6c1ff8caca Merge branch 'master' into next
Conflicts:
	apps/openmw/mwworld/weather.cpp
	components/fileorderlist/model/datafilesmodel.cpp
12 years ago
scrawl 21cc7483e4 Fix broken weather transitions 12 years ago
Glorf 5922637c58 Unblocked Solstheim weather that should work now. 12 years ago
Glorf f3fd3a7691 Much more moons fallbacks 12 years ago
Glorf 1369090a80 More moons fallbacks, minor weather fixes 12 years ago
Marc Zinnschlag 66a2df68db some cleanup 12 years ago
Glorf 727a598cbe Last tabulator died 12 years ago
Glorf 542c1bcc53 Some other tabulators deleted 12 years ago
Glorf e1c6c3fe02 Tabulators deleted 12 years ago
Glorf 521bebd2f4 Fallback system rewritten, added light fallbacks 12 years ago
Marc Zinnschlag bdec87e51b some cleanup 12 years ago
Glorf d5ca00c927 Another fix 12 years ago
Glorf 81338d3b23 Weather code fixes 12 years ago
Glorf aebd9a3700 Weather to pull 12 years ago
scrawl 15e51b76de Experimental: Directional shading on local map, separated out refraction render, no longer uses screen depth 12 years ago
eduard 2dc0064cc2 more string lowercase 12 years ago
Chris Robinson 7b2c3e6cd3 Pass a proper PlayMode enum to playSound and playSound3D 12 years ago
greye ff8da265ed applying new interface vol.9, inconsistent 12 years ago
greye d205723a17 resolving m prefix/ESMStore movement 12 years ago
greye 2057f5619e move ESMStore to MWWorld 12 years ago
greye 3c2ce25f5f m prefix for mwworld/cellstore.hpp 12 years ago
greye 2fa4ac177a initial resolving 12 years ago
scrawl caef570c8a fix the weather not changing when sleeping/waiting 12 years ago
greye 7606ebafd6 resolving conflicts, minor update 12 years ago
Marc Zinnschlag 6bd48d12af Issue #107: SoundManager is accessed only through the interface class from now on 13 years ago
scrawl 7731e9a6fa finished cleaning up sky 13 years ago
Marc Zinnschlag 5a7b95bf7a Issue #107: cleaned up includes in apps/openmw/mwworld/class.hpp 13 years ago
Marc Zinnschlag 4c39fefd1e Issue #107: World is accessed only through the interface class from now on; some include cleanup 13 years ago
scrawl c85c794c86 fixed some cppcheck issues 13 years ago
scrawl 375c198ebd WeatherManager: fix for cells that have no region. 13 years ago
scrawl 4ce83badc9 flickering lights 13 years ago
Marc Zinnschlag 35f478071e Issue #255: deleted the old environment class and using the new one instead 13 years ago
scrawl c748252d33 weather fix again 13 years ago
scrawl cdea19206c Revert "more accurate fog, TODO: apply this to the terrain"
This reverts commit 96c37d3e7c.
13 years ago
scrawl 96c37d3e7c more accurate fog, TODO: apply this to the terrain 13 years ago