elsid
19e471741a
Use PtrBase::mRef instead of getBase for mechanics objects
...
getBase adds a condition and can throw an exception. Which is redundant for
MWMechanics::Objects functions.
2022-05-21 00:41:57 +02:00
elsid
1bb1053569
Make all MWMechanics::Actor functions inline
2022-05-21 00:41:56 +02:00
elsid
77c09dff39
Store CharacterController by value in MWMechanics::Actor
2022-05-21 00:41:55 +02:00
elsid
24712e2cb1
Avoid changing map when updating ptr
...
This is not necessary and has overhead.
2022-05-21 00:12:33 +02:00
elsid
e2c44d13f3
Use std::list to store mechanics actors
...
To make the order of elements deterministic. Using memory address based objects
as map key makes order of elements there nondeterministic. Later it can be
replaced with vector when there are no indirect munipulations with container
inside iteration loops.
Change map key to const MWWorld::LiveCellRefBase* to avoid erasing and inserting
elements on MWWorld::Ptr update.
2022-05-20 22:55:55 +02:00
Petr Mikheev
6a0a2eed33
[Lua] core.getRealTime()
2022-05-20 21:49:19 +02:00
Petr Mikheev
58207fc1e3
Merge branch 'lua_handler_objectactive' into 'master'
...
onObjectActive and onItemActive Lua engine handlers
Closes #6740
See merge request OpenMW/openmw!1844
2022-05-20 19:27:21 +00:00
uramer
70eacbbefc
onObjectActive and onItemActive Lua engine handlers
2022-05-20 19:27:21 +00:00
psi29a
67421a400a
Merge branch 'bookluabinds' into 'master'
...
Lua API for Book records
See merge request OpenMW/openmw!1886
2022-05-20 14:09:09 +00:00
psi29a
6b7c302102
Merge branch 'mechanics_objects_list' into 'master'
...
Use std::list to store mechanics objects
See merge request OpenMW/openmw!1881
2022-05-20 14:08:02 +00:00
kuyondo
5109777d3b
remove duplication
2022-05-20 18:50:00 +08:00
psi29a
f1fb446108
Merge branch 'typo' into 'master'
...
Typo
See merge request OpenMW/openmw!1887
2022-05-20 06:38:41 +00:00
glassmancody.info
7684d7e660
documentation typo
2022-05-19 17:22:16 -07:00
elsid
ce3bba0cdc
Use std::list to store mechanics objects
...
To make the order of elements deterministic. Using memory address based objects
as map key makes order of elements there nondeterministic. Later it can be
replaced with vector when there are no indirect munipulations with container
inside iteration loops.
Change map key to const MWWorld::LiveCellRefBase* to avoid erasing and inserting
elements on MWWorld::Ptr update.
Store CharacterController by value instead of pointer to avoid redundant memory
allocation.
2022-05-20 00:47:10 +02:00
kuyondo
7dbccc914a
no skill returns nil
2022-05-20 06:03:12 +08:00
Petr Mikheev
84ef84529a
Merge branch 'change_renderer_args' into 'master'
...
Changing setting renderer arguments
See merge request OpenMW/openmw!1875
2022-05-19 19:49:15 +00:00
uramer
1fe794d935
Changing setting renderer arguments
2022-05-19 19:49:14 +00:00
Petr Mikheev
b832ba5c83
Merge branch 'limit_layout_depth' into 'master'
...
Limit maximum Lua UI layout depth to prevent stack overflow
Closes #6733
See merge request OpenMW/openmw!1841
2022-05-19 16:56:59 +00:00
kuyondo
8a1a838ffa
update book.cpp and weapon.cpp
2022-05-20 00:39:19 +08:00
psi29a
4cea962535
Merge branch 'lua_console_doc' into 'master'
...
Add a couple of words about Lua console to the documentation
See merge request OpenMW/openmw!1885
2022-05-19 14:23:08 +00:00
uramer
9042f47f0a
Use an anonymous namespace in element.cpp
2022-05-19 16:10:49 +02:00
uramer
5d7fc0ab17
Limit maximum Lua UI layout depth to prevent stack overflow
2022-05-19 16:10:05 +02:00
kuyondo
a26898d8ed
no addtype
2022-05-19 20:18:47 +08:00
kuyondo
cad68a5566
Add lua binding for books
2022-05-19 20:02:18 +08:00
psi29a
d4e2000d5b
Merge branch 'render_targets' into 'master'
...
Bind custom render targets per pass
See merge request OpenMW/openmw!1884
2022-05-19 11:03:02 +00:00
psi29a
33746c4b70
Merge branch 'fix_gcc_warning' into 'master'
...
Fix gcc warning: -Wuninitialized
See merge request OpenMW/openmw!1869
2022-05-19 11:00:32 +00:00
Petr Mikheev
e326c5bd09
Add a couple of words about Lua console to the documentation
2022-05-19 10:59:31 +02:00
glassmancody.info
3d03052717
dont bind rendertargets unless we use them, otherwise texture limit will be reached quickly
2022-05-18 19:45:09 -07:00
Petr Mikheev
43f4a0cfc5
Merge branch 'activatorluabinds' into 'master'
...
Lua API for Activator records
See merge request OpenMW/openmw!1882
2022-05-18 22:41:38 +00:00
kuyondo
93aae5e116
Add lua binding for activators
2022-05-19 04:23:22 +08:00
psi29a
b9b4f1c3c2
Merge branch 'console_log' into 'master'
...
In-game log viewer
See merge request OpenMW/openmw!1799
2022-05-18 07:57:59 +00:00
psi29a
d3f331793e
Merge branch 'sol' into 'master'
...
Update sol. Replace combined sol.hpp with loose files.
See merge request OpenMW/openmw!1851
2022-05-18 07:57:32 +00:00
psi29a
b9b8cefb4d
Merge branch 'prng-fixes' into 'master'
...
More determinism
See merge request OpenMW/openmw!1874
2022-05-18 07:55:49 +00:00
psi29a
8b627741cf
Merge branch 'improve_sast' into 'master'
...
Improve a bit our SAST
See merge request OpenMW/openmw!1876
2022-05-18 07:54:11 +00:00
uramer
d18b6aae87
Merge branch 'beelzebielsk-docs-typo-fixes' into 'master'
...
Update files/lua_api/openmw/types.lua, files/lua_api/openmw/ui.lua
See merge request OpenMW/openmw!1879
2022-05-18 05:58:20 +00:00
Adam Ibrahim
96f4057f08
Update files/lua_api/openmw/types.lua, files/lua_api/openmw/ui.lua
2022-05-18 03:22:12 +00:00
jvoisin
5df9573e54
Improve a bit our SAST
2022-05-17 21:42:14 +02:00
ζeh Matt
18f16eac4c
Refactor DetourNavigator to pass prng along, use world prng for AiWander
2022-05-17 20:37:15 +03:00
ζeh Matt
b2fab5f5ad
Use World prng for weather system as it influences actors
2022-05-17 18:22:45 +03:00
ζeh Matt
3a90bc7187
Use World prng for head/blink animations
2022-05-17 18:22:45 +03:00
ζeh Matt
cb99e8643a
Use World prng for selection of random creature spawning
2022-05-17 18:22:45 +03:00
psi29a
12a8a6b876
Merge branch 'fix_if_condition' into 'master'
...
Use proper variable to check in if condition
See merge request OpenMW/openmw!1873
2022-05-17 12:47:41 +00:00
elsid
18d05c8f1a
Use proper variable to check in if condition
2022-05-17 13:19:39 +02:00
psi29a
2f75acc34e
Merge branch 'navmesh_render_update_frequency' into 'master'
...
Add navmesh debug render mode to show update frequency
See merge request OpenMW/openmw!1685
2022-05-17 07:32:08 +00:00
psi29a
bbcdac6b18
Merge branch 'fix_mygui_data_manager_includes' into 'master'
...
Add includes for used types and functions (#6744 )
See merge request OpenMW/openmw!1870
2022-05-17 07:28:35 +00:00
psi29a
c19ca8453a
Merge branch 'highp' into 'master'
...
Remove precision qualifiers
See merge request OpenMW/openmw!1871
2022-05-17 07:05:53 +00:00
eldercare cognition
f6b21b8160
Update install-openmw.rst with instructions for installing via flatpak.
2022-05-17 04:40:23 +00:00
elsid
215b46503c
Support rendering for navmesh update frequency as a heatmap
...
Useful when need to find tiles with high number of updates.
Add debug Lua package with new functions to toggle render mode and set navmesh
render mode.
2022-05-17 01:54:20 +02:00
cody glassman
915eaa4c91
highp is not available in version 120
2022-05-16 16:17:39 -07:00
elsid
5f2e282359
Add includes for used types and functions
2022-05-17 00:58:24 +02:00