Commit Graph

25401 Commits (e8ed66767b2935068d11652a56f02f3336a9edb1)
 

Author SHA1 Message Date
jvoisin 38316cdaf8 Fix various warnings found by clang
- unused alias
- inefficient use of push_back
- exceptions not inheriting from std::exception
- weird use of a comma
- value compared against itself
4 years ago
psi29a a69619a1e8 Merge branch 'where_is_my_log' into 'master'
Don't clobber game log file when we collect a stack trace.

See merge request OpenMW/openmw!755
4 years ago
jvoisin a35eae3dd1 Fix a read head-buffer-overflow in esm
The check forgot to account for the terminal zero.
4 years ago
fredzio 4058e117ca Don't clobber game log file when we collect a stack trace.
When the crash catcher catch a signal it forks to collect data about its
parent. In the process the child reinitialize the log file, which ends
up empty.
4 years ago
Andrei Kortunov f308dde254 Clean up MSVC warnings 4 years ago
Andrei Kortunov 57b501ad13
Merge pull request #3067 from akortunov/master
Limit pointers cache size to avoid possible bad_alloc errors
4 years ago
psi29a c83b6ff445 Merge branch 'enable_ag_by_default' into 'master'
Enable Active Grid by default

See merge request OpenMW/openmw!753
4 years ago
unelsson 06fda4c5a1 QLineEdit for setting base animation files 4 years ago
unelsson 95272e0f14 String setting to CSMPrefs, part of dehardcoding animation files 4 years ago
psi29a 4e3f338826 Now that the lighting issue has been fixed, we can now enable active grid by default (which is guarded by distant land). 4 years ago
psi29a d3c865d909 Merge branch 'fix_bsa' into 'master'
Add some validation for bsa parsing

Closes #5955

See merge request OpenMW/openmw!750
4 years ago
psi29a d0883f9a0d Merge branch 'light_settings_tweak' into 'master'
Lighting patch

Closes #5957 and #5959

See merge request OpenMW/openmw!752
4 years ago
psi29a 50adeef1ab Merge branch 'coverity_schedule' into 'master'
Fix once and for all™ coverity's schedule

See merge request OpenMW/openmw!748
4 years ago
glassmancody.info 16856d45c5 Lighting Patch
Fixes build errors with older OSG builds and some issues with 'shared' layout.
Bring back ambient in inventory through lightmodel instead of sun ambient, mirrors scene ambient/sunlight relationship.
Forces shaders when certain lighting methods are enabled and finalize settings.
Correctly override sun for localmap.
4 years ago
Evil Eye 80266d435c Merge branch 'fix_crash' into 'master'
Fix an off-by-one in loadscpt

See merge request OpenMW/openmw!728
4 years ago
jvoisin 47ced7dec4 Add some validation for bsa parsing
This should fix #5955
4 years ago
psi29a 0b8cae4af8 Merge branch 'objects_can_move_too' into 'master'
Another fallout from MR 722: restore objects handling

See merge request OpenMW/openmw!749
4 years ago
psi29a 9f10007891 Merge branch 'fix_macos' into 'master'
Install ccache before run on macOS

See merge request OpenMW/openmw!747
4 years ago
fredzio f137b7341f Another fallout from MR 722: objects were treated like actors by
accident. Net effect was that calls to Move/MoveWorld didn't update
position of collision object.
4 years ago
jvoisin d37b66d58f Fix once and for all™ coverity's schedule
- According to https://gitlab.com/OpenMW/openmw/-/jobs/1176801332 there is no
  need to `cd` into build, since coverity will generate a `cov-int` folder
  in the current folder.
- Don't run other jobs by default during scheduled runs.
- Add a missing terminal quote to coverity's upload command.
4 years ago
elsid 9d321b7cdf
Install ccache before run on macOS 4 years ago
psi29a e350d7d4ff Merge branch 'macos-ci-fix' into 'master'
Attempt to fix MacOS beta shared runners.

See merge request OpenMW/openmw!745
4 years ago
Andrei Kortunov b49e63bd12 Merge branch 'fixbuild' into 'master'
Fix build for FreeBSD

See merge request OpenMW/openmw!746
4 years ago
fredzio 16b288f53c Re-add dropped struct keyword to fix build.
rtprio is both a struct and a function, so we need to be explicit.

../../../components/misc/thread.cpp:53:9: error: must use 'struct' tag
to refer to type 'rtprio' in this scope
rtprio prio;
^
struct
/usr/include/sys/rtprio.h:91:5: note: struct 'rtprio' is hidden by a
non-type declaration of 'rtprio' here
int     rtprio(int, pid_t, struct rtprio *);
^
1 error generated.
4 years ago
Andrei Kortunov 5de72c94ab Limit pointers cache size to avoid possible bad_alloc errors 4 years ago
AnyOldName3 65e7857606 Maybe make -f flag work
Why can't -f just do what the manual says? Why do we even have a pre-existing build directory sometimes? We don't cache it, and artifacts are only supposed to be accessible within the same pipeline.
4 years ago
AnyOldName3 6bbcee8f1f Attempt to fix MacOS beta shared runners.
I think they changed the tag a week ago without notifying us.
4 years ago
psi29a af8bc7d120 Merge branch 'fixagainsetposforgoodthistimeitwillnotbreakanything' into 'master'
Fix #5961: Follow up MR 722: do not apply mPositionOffset twice when we teleport.

Closes #5961

See merge request OpenMW/openmw!744
4 years ago
fredzio e31cf7e6ac Follow up MR 722: do not apply mPositionOffset twice when we teleport.
Previous MR change the meaning of mPositionOffset: it is now just a log
of relative movement that were already applied to allow the physics
simulation to catch up, instead of changes that needs to be applied. As
such, after a teleport we need to reset it. Also, since mWorldPosition
is already with the offset we should not update its value in
applyPositionOffset().
4 years ago
psi29a c686dd05d0 Merge branch 'thread_idle_priority' into 'master'
Set idle priority for navmesh generation thread

See merge request OpenMW/openmw!632
4 years ago
Bret Curtis 395748f2fd
Merge pull request #3066 from akortunov/master
Validate GUI scaling and place it to the launcher
4 years ago
Andrei Kortunov 33b8233887 Validate GUI scaling and place it to the launcher 4 years ago
Bret Curtis 21a235f173
Merge pull request #3065 from akortunov/master
Move container unresolving to the separate method
4 years ago
elsid ab8d1c02d4
Set idle priority for navmesh generation thread
Support Linux, Windows, FreeBSD.
4 years ago
Andrei Kortunov db1428de18 Move container unresolving to the separate method 4 years ago
Bret Curtis 4f72fa2615
Merge pull request #3063 from akortunov/master
Code cleanup, part 2
4 years ago
Andrei Kortunov e2ccd1712a Merge branch 'remove_bogus_warning' into 'master'
Remove bogus warning (#5952)

See merge request OpenMW/openmw!741
4 years ago
fredzio 9d8fcec642 Remove bogus warning. It is a normal situation for projectiles to be
in-flight after the caster is gone.
4 years ago
Andrei Kortunov 016a1d45df Remove outdated field - remnant from earlier implementation 4 years ago
Andrei Kortunov 0c7ddd3938 Remove redundant qualifiers 4 years ago
Andrei Kortunov ac347810ca Fix uninitialized field in the mouse event 4 years ago
Andrei Kortunov bce6effe95 Fix uninitialized variables in the LightManager 4 years ago
Andrei Kortunov e309f75938 Join variables declaration and usage 4 years ago
Andrei Kortunov 5f6f2c15b1 An another attempt to suppress Coverity warning about mkstemp 4 years ago
Andrei Kortunov 388573cf60 Fix uninitialized fields in the essimporter 4 years ago
Andrei Kortunov 696cf9ab05 Extend variables range to avoid integer overflow 4 years ago
psi29a fcb3fffb9a Merge branch 'fix_find_path_freeze' into 'master'
Fix freezes in pathfinding (#5954)

See merge request OpenMW/openmw!740
4 years ago
elsid 0fae6d9a0a
Add walk and swim flags when corresponding speed is positive
This allows to avoid finding path over area that will should have infinite
cost (area_cost = area_cost_factor / area_speed).
4 years ago
elsid 3c4a9069ae
Do not use infinite area cost
Division by zero causes float value to be infinite. When infinite cost is
multiplied by zero distance the result is NaN. After this pathfinding algorithm
state is broken.
4 years ago
psi29a a77e1f1812 Merge branch 'coverity_upload' into 'master'
`cd` into the build directly to upload coverity logs

See merge request OpenMW/openmw!739
4 years ago