Bo Svensson
147ed39900
This PR solves a crash with Robert's bodies logged on your bugtracker. ( #3095 )
...
* attach.cpp [ci skip]
* attach.cpp [ci skip]
* attach.cpp [ci skip]
* npcanimation.cpp [ci skip]
* attach.hpp [ci skip]
* attach.cpp [ci skip]
* creatureanimation.cpp [ci skip]
* creatureanimation.cpp [ci skip]
* cellpreloader.cpp
* npcanimation.cpp
* attach.cpp
* make android adk happy
* make android adk happy
* changelog.md [ci skip]
* authors.md [ci skip]
2021-09-09 22:56:57 +02:00
psi29a
ac3fda0b3d
Merge branch 'string_view' into 'master'
...
Pass std::string_view instead of const std::string&
See merge request OpenMW/openmw!1209
2021-09-09 20:41:16 +00:00
elsid
133fcbece5
Merge branch 'correct-linux-save-path' into 'master'
...
This is the right path for saves
See merge request OpenMW/openmw!1208
2021-09-09 20:33:42 +00:00
Lamoot
6e6214bc43
In OpenMW-CS, when creating a new object, sort the entries in the drop-down menu alphabetically. Also have the menu be tall enough to show all of them at once (without scroll bars).
2021-09-09 20:46:27 +02:00
elsid
6b7434ca69
Pass std::string_view instead of const std::string&
...
* Starting with Actor::getBodyPartMesh and ending with
Misc::StringUtils::ciEqual.
* Add tests for Misc::StringUtils::ciEqual.
2021-09-09 18:39:50 +02:00
psi29a
acefcf8e7a
Merge branch 'bad-ci_commit_ref_name-no-biscuits' into 'master'
...
Remove unsafe characters from zip filenames on Windows
See merge request OpenMW/openmw!1207
2021-09-09 11:39:19 +00:00
Bret Curtis
0eb753767f
Merge pull request #3098 from bosvensson1/findbynamevisitor
...
visitor.cpp early out
2021-09-09 11:52:09 +02:00
Hristos N. Triantafillou
dc623597b4
This is the right path for saves
2021-09-08 19:19:40 -05:00
AnyOldName3
5ab5419f7b
Remove unsafe characters from zip filenames on Windows
2021-09-08 21:08:04 +00:00
Bo Svensson
d36c373cc7
visitor.cpp early out
2021-09-08 17:23:35 +00:00
psi29a
149241daae
Merge branch 'dead_animation_code_removal' into 'master'
...
Dead animation code removal
Closes #6264
See merge request OpenMW/openmw!1198
2021-09-08 10:07:54 +00:00
JanuarySnow
bdbc6c0cba
Dead animation code removal
2021-09-08 10:07:54 +00:00
psi29a
4bf22f3ca0
Merge branch 'fix_pathgrid_path' into 'master'
...
Use pathgrid path when destination is closer to different graph component node
See merge request OpenMW/openmw!1155
2021-09-08 09:55:42 +00:00
psi29a
a0eda45891
Merge branch 'find_missing_merge_requests' into 'master'
...
Add script to find missing merge requests
See merge request OpenMW/openmw!1201
2021-09-08 09:52:22 +00:00
psi29a
41f9671841
Merge branch 'update-docs-dev-link' into 'master'
...
Documentation: Update an obsolete link pointing to the old wiki.
See merge request OpenMW/openmw!1204
2021-09-08 09:48:15 +00:00
psi29a
44d1a77a87
Merge branch 'sleep_free_preload' into 'master'
...
Make sync terrain preloading sleep free
See merge request OpenMW/openmw!1203
2021-09-08 07:19:50 +00:00
Matjaž Lamut
b19da7f650
Update an obsolete link pointing to teh old wiki. The information is moved to the new wiki at gitlab and the link now points there.
2021-09-07 18:57:03 +00:00
elsid
605cb8db7c
Make sync terrain preloading sleep free
...
This reduces average time spent on in. 5 milliseconds as a base precision is
quite a lot considering that for 60 FPS frame time is 1000/16 = ~16.67 ms
when it's a cell loading frame and there is more important work to do rather
than sleeping.
2021-09-07 14:52:42 +02:00
elsid
e30709170d
Add script to find missing merge requests
2021-09-07 10:45:23 +02:00
psi29a
aef6ec464c
Merge branch 'optimize_add_item' into 'master'
...
Optimize ContainerStore::stacks (attempt #2 )
See merge request OpenMW/openmw!1200
2021-09-07 08:40:02 +00:00
psi29a
422571367f
Merge branch 'osg_plugins' into 'master'
...
Define dependency to OSG plugins in one place (attempt #2 )
See merge request OpenMW/openmw!1199
2021-09-07 08:39:26 +00:00
elsid
403f0a72f0
Do not copy RefId when need to compare
...
Makes ContainerStore::stacks ~4x times faster when adding 4k different items
in a single frame.
2021-09-06 22:52:09 +02:00
elsid
e910dd7a25
Rename CellRef::getRefIdPtr -> getRefIdRef and return reference
...
Return value can't be nullptr. Pointer complicates the code because has to be
dereferenced.
Also move function definition to hpp to make it easier for compiler to optimize
calls.
2021-09-06 22:52:08 +02:00
elsid
b0f772af40
Define dependency to OSG plugins in one place
...
Each binary depending on components library requires OSG plugins to be linked.
Duplicating dependecies for each binary does not give benefits and brings
problems when new binary is added.
2021-09-06 22:44:52 +02:00
Frederic Chardon
7b26058fa5
moveObject() has side effects that might invalidate iterators from mActors. Instead of iterating over mActors, make a copy of needed data and iterate over the copies.
2021-09-06 12:51:25 +02:00
psi29a
6170971ea3
Merge branch 'bettermoveinstance' into 'master'
...
Set instance movement based on camera zoom
See merge request OpenMW/openmw!1186
2021-09-06 09:48:30 +00:00
jvoisin
0b2b0e93ff
Merge branch 'commulative_timeseries' into 'master'
...
Support commulative timeseries graph for osg stats
See merge request OpenMW/openmw!1195
2021-09-06 08:08:58 +00:00
elsid
43538a5ca5
Support commulative timeseries graph for osg stats
2021-09-06 00:02:20 +02:00
Petr Mikheev
c4dca196b9
Merge branch 'fix_warnings' into 'master'
...
Fix -Wreturn-local-addr warning
See merge request OpenMW/openmw!1194
2021-09-05 10:00:57 +00:00
elsid
1b1deeb59b
Fail CI build when not allowed warnings are present
...
Put -Wno-error after -Wall to make it work properly for clang.
2021-09-05 02:06:03 +02:00
Petr Mikheev
4fcac49e5f
Merge branch 'constrefclang' into 'master'
...
Sprinkle some const-ref in loop
See merge request OpenMW/openmw!1180
2021-09-04 19:49:13 +00:00
jvoisin
cb08f490d7
Sprinkle some const-ref in loop
...
This was done on the good advices of clang-tidy
2021-09-04 20:50:59 +02:00
elsid
a8c16071dc
Fix -Wreturn-local-addr warning
...
/home/elsid/dev/openmw/apps/opencs/model/world/actoradapter.cpp: In member function ‘const string& CSMWorld::ActorAdapter::ActorData::getPart(ESM::PartReferenceType) const’:
/home/elsid/dev/openmw/apps/opencs/model/world/actoradapter.cpp:142:20: error: returning reference to temporary [-Werror=return-local-addr]
142 | return "";
| ^~
2021-09-04 18:04:45 +02:00
Petr Mikheev
76320aae45
Merge branch 'const_ret_val' into 'master'
...
Don't use `const` for objects returned by value.
See merge request OpenMW/openmw!1183
2021-09-04 12:41:52 +00:00
psi29a
a57b5674e5
Merge branch 'hash_actors' into 'master'
...
Replace std::map with std::unordered_map and use constant Ptr.mRef as a key
See merge request OpenMW/openmw!1129
2021-09-03 15:16:14 +00:00
psi29a
a0201feb97
Merge branch 'lua_tostring' into 'master'
...
Function LuaUtil::toString
See merge request OpenMW/openmw!1187
2021-09-03 13:09:17 +00:00
fredzio
d20730458d
Replace std::map with std::unordered_map for mActors and mObjects.
...
Use Ptr.mRef as a key instead of Ptr: it is constant for the lifetime of
the object.
2021-09-03 13:14:05 +02:00
fredzio
0bce6c09e1
Change projectile behaviour to be like in vanilla wrt. water plane:
...
- enchanted arrow explode upon hit the water plane
- non enchanted arrow disappear (or more accurately, they hit nothingness)
- enchanted arrow shot underwater explode immediately
- non enchanted arrow disappear immediately
Also, solve a bug that occured previously and could theoritically still happens where we use the last tested collision position for instead of the last registered hit:
Use the hit position as saved inside Projectile::hit() instead of the last position saved inside the callback.
If a projectile collides with several objects (bottom of the sea and water surface for instance), the last collision tested won't necessarily be the impact position as we have no control over the order in which the tests are performed.
2021-09-03 10:24:05 +02:00
jvoisin
d4e3575f1d
Don't use const
for objects returned by value.
...
This prevents the usage of std::move semantics,
and makes clang-tidy sad.
2021-09-01 22:23:50 +02:00
unelsson
8edcaeb323
Add changelog
2021-09-01 02:04:04 +03:00
unelsson
f876ff2c14
Clear temporary movement data at the end of the drag
2021-09-01 02:04:04 +03:00
unelsson
53d315c862
XYZ-locking, mouse wheel move fix
2021-09-01 02:04:04 +03:00
unelsson
23fe3d74ab
Use floats, not doubles
2021-09-01 02:04:04 +03:00
unelsson
840e7615f5
Store object origins and move difference
2021-09-01 02:04:04 +03:00
unelsson
0d511da615
Test of basic mouse-plane use
2021-09-01 02:04:04 +03:00
elsid
291195872e
Merge branch 'this_is_not_the_iterator_you_are_looking_for' into 'master'
...
fix #6246
Closes #6246
See merge request OpenMW/openmw!1189
2021-08-31 19:15:43 +00:00
fredzio
d1a5bc207b
Iterate over mInactiveCells when unloading cells in TestCells / TestInteriorCells. Otherwise we dereference an invalid iterator after deactiveCell().
2021-08-31 16:53:52 +02:00
elsid
0daf6f5d0b
Merge branch 'comma' into 'master'
...
Don't use comma where there is no need to.
See merge request OpenMW/openmw!1179
2021-08-31 12:33:15 +00:00
Petr Mikheev
33d4d88447
Function LuaUtil::toString
2021-08-31 09:41:58 +02:00
Evil Eye
18f51e1026
Merge branch 'nonull' into 'master'
...
Don't pass a nullptr to a std::string constructor
See merge request OpenMW/openmw!1178
2021-08-30 18:59:06 +00:00