116 Commits

Author SHA1 Message Date
Vyacheslav Ivanov
faa1635014
fix: PVS-Studio V688
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 23:00:11 +03:00
Vyacheslav Ivanov
ab28b4df70
fix: PVS-Studio V550
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 23:00:10 +03:00
Vyacheslav Ivanov
7c8f04aa75
fix: Do not use NULL in arithmetic
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 21:03:52 +03:00
Vyacheslav Ivanov
bbf33e8e4d
format: reformat project
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 19:53:48 +03:00
Vyacheslav Ivanov
63ede5e27d fix: optimization: PVS-Studio warning V837
Replaced 'emplace' with 'try_emplace' to avoid unnecessary copies or moves when insertion fails.

The 'emplace' function does not guarantee that arguments will not be copied or moved if insertion is not successful. Using 'try_emplace' ensures that arguments are only copied or moved if the insertion actually takes place, thus improving performance.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:45:26 +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
307ffc3c8f
fix: optimization: PVS-Studio warning V837
Replaced 'emplace' with 'try_emplace' to avoid unnecessary copies or moves when insertion fails.

The 'emplace' function does not guarantee that arguments will not be copied or moved if insertion is not successful. Using 'try_emplace' ensures that arguments are only copied or moved if the insertion actually takes place, thus improving performance.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 02:38:54 +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
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
a856b4f140 add framerate control (WIP) 2024-07-25 22:33:21 +03:00
MihailRis
012e81d4c9 add doc/**/cameras.md & update cameras library 2024-07-22 16:50:03 +03:00
MihailRis
24ecb94942 fix cameras loading 2024-07-12 00:20:22 +03:00
MihailRis
9a18476437 refactor: player cameras are resources now 2024-07-12 00:02:01 +03:00
MihailRis
a013e7eefd feat: cameras saving/loading 2024-07-11 22:45:57 +03:00
MihailRis
fc34ca6875 ignore GLEW_ERROR_NO_GLX_DISPLAY (issue #240) 2024-06-12 12:21:18 +03:00
MihailRis
a5dc187481 fix: function returns by const value 2024-06-07 15:17:32 +03:00
MihailRis
14911aa30f remove old bindings format support 2024-06-07 14:13:49 +03:00
MihailRis
ad62b759fb fix: input F1..F25 key codes & add binding 'chunks.reload' 2024-06-05 19:29:35 +03:00
MihailRis
15bb6d998d added doc/ru/Пользовательский-ввод.md 2024-06-03 19:04:34 +03:00
MihailRis
4e2ba865f3 controls.json -> controls.toml 2024-06-02 22:10:39 +03:00
MihailRis
a1776e015e fixes 2024-05-24 05:22:14 +03:00
MihailRis
66476ee642 bindings.toml, config/bindings.toml file 2024-05-20 04:06:49 +03:00
MihailRis
7fdacffe53 json-related refactor 2024-05-20 03:06:26 +03:00
MihailRis
c94d40ab02 toml parser update + 'toml' module is built-in now 2024-05-20 01:28:42 +03:00
MihailRis
2a8b750ad7 more keycodes 2024-05-17 14:00:23 +03:00
MihailRis
60cfe8595e minor refactor 2024-05-12 19:42:13 +03:00
MihailRis
9522aedeec quick check with linters 2024-05-10 12:34:05 +03:00
MihailRis
1627e21c1d the final rename 2024-05-06 03:38:19 +03:00
MihailRis
7f8a86b740 minor refactor 2024-05-05 20:08:25 +03:00
MihailRis
ba885e4e08 input.add_callback 2024-05-05 06:49:17 +03:00
MihailRis
f02edcf15a scripting.h fix + input library 2024-05-05 00:28:30 +03:00
MihailRis
ef28a368cb refactor 2024-04-28 22:33:34 +03:00
MihailRis
167388aefb track-width fixes 2024-04-28 20:09:55 +03:00
MihailRis
c3b5576c02 toml::Wrapper removed 2024-04-28 17:23:52 +03:00
MihailRis
6650e27737 ObservableSetting 2024-04-26 02:43:10 +03:00
MihailRis
4861fedf1e fullscreen setting checkbox + smth 2024-04-26 00:34:15 +03:00
MihailRis
051f0b8c6a rename 2024-04-23 18:43:02 +03:00
MihailRis
9f2bceb039 just a minor refactor, nothing special 2024-04-23 02:00:03 +03:00
MihailRis
b9ea88b988 settings page completely moved to xml 2024-04-20 15:52:55 +03:00
MihailRis
eb70e1c0df refactor + auto max atlas resolution 2024-04-10 18:18:55 +03:00
MihailRis
0c411cf227 debug::Logger 2024-04-04 18:19:19 +03:00
MihailRis
a4960097f0 minor refactor 2024-03-29 12:24:02 +03:00
MihailRis
1b1f11e0b8 minor refactor 2024-03-20 09:10:35 +03:00
MihailRis
b56408a202 src/graphics moved to src/graphics/core 2024-03-18 20:47:35 +03:00
MihailRis
3e929cd97c cursor movement fix 2024-03-06 16:34:26 +03:00
MihailRis
3862dbda66 contentpack remove feature WIP 2024-02-29 23:47:07 +03:00
A-lex-Ra
77b36f45f2 remove redundant static_cast by changing Events::pressedKeys template parameter from int to keycode 2024-02-23 20:15:02 +06:00