1707 Commits

Author SHA1 Message Date
Vyacheslav Ivanov
818fd716cc
fix: optimization: PVS-Studio warning V825
The 'current.reset(lang.release())' expression is equivalent to 'current = std::move(lang)'.
Changed 'current.reset(lang.release())' to 'current = std::move(lang)' to improve code clarity and performance.

Reported by: PVS-Studio

Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 01:57:43 +03:00
Vyacheslav Ivanov
5dd7a15c09
fix: optimization: PVS-Studio warning V832
It's better to use '= default;' syntax instead of empty constructor and destructor body.
Using '= default;' can help the compiler generate more optimal code.

Reported by: PVS-Studio

Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 01:57:43 +03:00
Vyacheslav Ivanov
73e721513c
fix: optimization: PVS-Studio warning V836
Expression's value is copied at variable declaration.
The variable is never modified. Consider declaring it as a reference.

Changed variables to be a reference to avoid unnecessary copy.

Reported by: PVS-Studio

Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-01 23:40:28 +03:00
MihailRis
50a388c539 fix: access to deleted Sensor 2024-08-01 17:10:30 +03:00
MihailRis
f8907f7db1 add on_update, on_render to docs & change entities tps to 20 2024-08-01 16:04:27 +03:00
MihailRis
eefaafd1e7 update block.compose_state, block.decompose_state semantics 2024-07-31 14:56:42 +03:00
MihailRis
3a1ae57bbf fix: mat4.decompose (-Wmaybe-uninitialized) 2024-07-31 14:45:09 +03:00
MihailRis
10fa828bd7 update component 'ARGS' variable default value 2024-07-30 19:52:04 +03:00
MihailRis
63d0c8b01a fix: audio positioning when non-base camera active 2024-07-30 12:02:32 +03:00
MihailRis
c50f564b80 fix: overlay 'on_close' not called on window close 2024-07-29 21:04:27 +03:00
MihailRis
8f26397e56 hide hotbar on overlays with inventory hidden 2024-07-29 20:36:49 +03:00
MihailRis
a66228eb41 fix: 'gravity' does not work on hud overlays 2024-07-29 20:29:23 +03:00
MihailRis
c947af904d increase debug-panel width 2024-07-29 17:03:51 +03:00
MihailRis
753fb6bf3b add vec2.angle(...) 2024-07-29 16:54:57 +03:00
MihailRis
2b7b68f3c2 add 'static' entity body-type 2024-07-29 15:45:28 +03:00
MihailRis
d6696b54cb add 'normal' argument to on_use_on_block event 2024-07-29 15:23:04 +03:00
MihailRis
0f26d7c93a fix 2024-07-29 13:10:53 +03:00
MihailRis
b021339a8a add window icon 2024-07-28 23:47:49 +03:00
MihailRis
c0ba5be458 add framerate control 2024-07-28 22:31:27 +03:00
MihailRis
a2f011fc96 Merge branch 'main' into framerate-control 2024-07-28 22:20:25 +03:00
MihailRis
f46e4a7989 add trackbar 'sub-consumer' for value label refresh when 'change-on-release' 2024-07-28 22:15:18 +03:00
MihailRis
8ca12127db add 'change-on-release' trackbar property & fix mouseRelease event timing 2024-07-28 12:38:31 +03:00
MihailRis
3fee1072b7 fix 'block' model lights with AO turned-off 2024-07-27 22:59:06 +03:00
MihailRis
71e20ff805 add block 'ambient-occlusion' property 2024-07-27 18:37:18 +03:00
MihailRis
f485ba5e54 fix: invalid block segment was not removed on hover 2024-07-27 14:46:52 +03:00
MihailRis
adafc94fa1 add block.compose_state(...), block.decompose_state(...) 2024-07-27 13:23:35 +03:00
MihailRis
64ccf2a532 fix: thrid-person camera xray 2024-07-26 13:40:13 +03:00
MihailRis
3deb7ff830 fix: delta time plotter is interactive 2024-07-26 12:45:44 +03:00
MihailRis
a856b4f140 add framerate control (WIP) 2024-07-25 22:33:21 +03:00
MihailRis
0a8de441b4 fix hud.* functions cause fatal error if incorrect arguments passes 2024-07-25 00:03:13 +03:00
MihailRis
0de4061253 refactor EngineController.cpp 2024-07-24 17:44:43 +03:00
MihailRis
18d473b673 improve parsing error alert 2024-07-24 17:11:43 +03:00
MihailRis
fe1ac69b57 improve lua errors handling (traceback) & lua stack leaks fixes 2024-07-24 16:19:14 +03:00
MihailRis
2ec6c8b540 update component lua short name 2024-07-24 15:17:30 +03:00
MihailRis
b23f7e996f fix skeleton:index(...) 2024-07-23 22:48:26 +03:00
MihailRis
cf448def59 fix missing include 2024-07-23 19:31:51 +03:00
MihailRis
f9df873382 update assets errors handling & add 'atlases' to preload 2024-07-23 19:27:46 +03:00
MihailRis
ed60bdc333 fix: base packs initializing in menu 2024-07-23 16:41:37 +03:00
MihailRis
c3b6025e20 fix missing include 2024-07-22 19:38:23 +03:00
MihailRis
058daf6117 add camera:look_at optional interpolation parameter 2024-07-22 19:32:05 +03:00
MihailRis
e0cb57a10a add quat Lua library 2024-07-22 19:05:27 +03:00
MihailRis
b5e7b63a9d refactor lua libraries 2024-07-22 18:14:54 +03:00
MihailRis
012e81d4c9 add doc/**/cameras.md & update cameras library 2024-07-22 16:50:03 +03:00
MihailRis
2fe25f5dd5 fix: lua errors in standard libs initialization are nonthrowing 2024-07-22 15:53:05 +03:00
MihailRis
b5d7634601 fix player.get_camera 2024-07-22 14:19:09 +03:00
MihailRis
34ab3eb41c add player.get_camera(playerid) 2024-07-22 14:16:28 +03:00
MihailRis
0333ce6990 add bone "offset" parameter & update player model 2024-07-21 18:27:11 +03:00
MihailRis
3590bd14cd update DrawContext 2024-07-21 16:06:40 +03:00
MihailRis
cf12338a32 add skeleton debug view 2024-07-21 14:52:16 +03:00
MihailRis
c63e19e87b fix wrong entity display position on slow movement 2024-07-20 21:56:19 +03:00