553 Commits

Author SHA1 Message Date
MihailRis
47db626145 refactor: PVS-Studio warnings fixes 2024-08-04 01:30:52 +03:00
MihailRis
245b39be62 refactor: PVS-Studio warnings fixes 2024-08-04 01:12:42 +03:00
Vyacheslav Ivanov
3621e7ce1b
fix: PVS-Studio V522 mark false
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 23:00:10 +03:00
Vyacheslav Ivanov
26ff0f133a fix: optimization: PVS-Studio warning V821
Creating variables in a more localized scope can enhance performance and make the code easier to understand.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:50:04 +03:00
Vyacheslav Ivanov
35ef339b0c 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-03 17:44:37 +03:00
Vyacheslav Ivanov
aecd0f5db9 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-03 17:44:10 +03:00
MihailRis
ba046a52c0
Revert "fix: optimization: Various PVS-Studio warnings" 2024-08-02 14:51:44 +03:00
Vyacheslav Ivanov
2c1103307f
fix: optimization: PVS-Studio warning V813
Passing large objects by const reference avoids unnecessary copying and enhances efficiency.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 05:35:55 +03:00
Vyacheslav Ivanov
6b3146f98a
fix: optimization: PVS-Studio warning V821
Creating variables in a more localized scope can enhance performance and make the code easier to understand.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 05:35:53 +03:00
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
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
3deb7ff830 fix: delta time plotter is interactive 2024-07-26 12:45:44 +03:00
MihailRis
0de4061253 refactor EngineController.cpp 2024-07-24 17:44:43 +03:00
MihailRis
2c1adcedbd fix u_timer behaviour when paused 2024-07-18 13:50:57 +03:00
MihailRis
41a22938d6 add 'entity.despawn' command 2024-07-17 07:35:02 +03:00
MihailRis
4a0bc016ce refactor: extract method placeBlock and move some code from PlayerController to BlocksController 2024-07-15 15:41:25 +03:00
MihailRis
c17f3fec54 add entities raycast 2024-07-14 10:50:06 +03:00
MihailRis
ca8652ffab add packs resources (WIP) 2024-07-11 10:32:05 +03:00
MihailRis
690b8f4807 fix: on_render called while paused 2024-07-08 22:56:22 +03:00
MihailRis
7dfda981a8 remove Player.hitbox (WIP) 2024-07-08 03:51:46 +03:00
MihailRis
5522cfc231 add "Show Hitboxes" to the debug panel 2024-07-06 05:36:16 +03:00
MihailRis
cf2faa4a01 implement nextEntityID save/load 2024-07-05 23:41:55 +03:00
MihailRis
a72a37ccf7 Merge branch 'main' into entities 2024-07-01 06:21:00 +03:00
MihailRis
fab124a2e2 remove unnecessary 'new' operators 2024-07-01 06:00:33 +03:00
MihailRis
e08bfd071b fix lua stack leak 2024-06-29 22:39:41 +03:00
MihailRis
ee9f1639e9 refactor Content 2024-06-25 22:37:53 +03:00
MihailRis
94fe5eeb5b update ModelBatch semantics 2024-06-23 01:57:28 +03:00
MihailRis
d54b6b2e58 update Assets container - template-based now 2024-06-22 22:30:14 +03:00
@clasher113
c88bbe7fcb Merge branch 'main' of https://github.com/MihailRis/VoxelEngine-Cpp 2024-06-13 16:59:09 +03:00
MihailRis
fe55b94ebd fix: lua setInterval stack overflow 2024-06-12 19:39:31 +03:00
MihailRis
4e696520b6 refactor: PlayerController 2024-06-09 16:30:01 +03:00
MihailRis
ee47213dbb add temporary test block 2024-06-08 21:42:44 +03:00
MihailRis
f181086d2a update debug_panel 2024-06-08 11:00:53 +03:00
MihailRis
dd027e38fe add standard 'hud.*' elements ids 2024-06-07 23:13:09 +03:00
MihailRis
a5dc187481 fix: function returns by const value 2024-06-07 15:17:32 +03:00
Pugemon
e98fb9a1a7 Optimize container insertions using emplace_back instead of push_back 2024-06-07 04:43:27 +03:00
Pugemon
f25a425cb9 Optimize parameter passing to avoid unnecessary copying 2024-06-07 04:00:38 +03:00
@clasher113
eb59c3ae2f Merge branch 'main' of https://github.com/MihailRis/VoxelEngine-Cpp 2024-06-07 00:51:18 +03:00
MihailRis
ad62b759fb fix: input F1..F25 key codes & add binding 'chunks.reload' 2024-06-05 19:29:35 +03:00
MihailRis
0f4b6911a6 small fix 2024-05-31 20:38:50 +03:00
MihailRis
3003386670 chunk flags converted to a bitfield 2024-05-31 11:59:12 +03:00
MihailRis
3e0455358a fix: debug panel - block name out of panel 2024-05-31 11:42:09 +03:00
MihailRis
6d933ac263 converting block states to a bitfield 2024-05-31 11:13:36 +03:00
MihailRis
74042b5c2a player.get_selected_block 2024-05-31 08:33:37 +03:00
MihailRis
c9fb33132f weather is saving now 2024-05-30 16:02:01 +03:00