eb3b51a6cf
Remove save compatibility with 1.5.X
2025-03-18 11:35:15 +00:00
860f65ea62
Merge branch 'develop' into fix_map_sorting
2025-03-16 19:19:27 +02:00
64aaaf68d5
Merge pull request #5549 from MichalZr6/BattleHexArray_update
...
Fix BattleHexArray::contains() and fix no damage chance for catapult
2025-03-16 19:09:28 +02:00
cb7c2d2f07
Merge pull request #5544 from IvanSavenko/fix_shutdown
...
Fix shutdown
2025-03-16 19:08:41 +02:00
daa57f30d5
Merge pull request #5525 from vcmi/fix_small_rmg_zones
...
Move main town to the tile with highest distance to water shore
2025-03-13 19:14:00 +01:00
a8f9ac41e1
Fix no damage chance for catapult with no ballistics
2025-03-13 17:50:18 +01:00
749149a679
Fixes following reviews
...
Use std::optional and improve textSearchSimilarityScore()
2025-03-12 21:40:07 +01:00
4b0fe811ac
Contains returns false instead of true for invalid hexes
2025-03-12 17:55:50 +01:00
3f4616eb0f
SonarCloud fixes
2025-03-12 17:44:13 +01:00
ed4079e83b
Code cleanup, add comments where relevant
2025-03-12 15:57:06 +00:00
6877bbfe3a
Fix issues found by Valgrind
2025-03-12 15:56:52 +00:00
96d691b40c
Fix crash on closing game during background image upscaling
2025-03-12 14:18:44 +00:00
e73d05933d
Quick shutdown of ConsoleHandler thread
2025-03-12 13:33:12 +00:00
222b73bbcd
Simplify library initialization
2025-03-12 13:33:12 +00:00
e5d476d9c4
Merge pull request #5538 from IvanSavenko/fix_cannonyard
...
Fixes for crashes
2025-03-12 14:55:42 +02:00
9fbb2d7370
Fix: use LIBRARY instead of VLC
2025-03-11 23:45:59 +01:00
5363424451
Small fixes to search mapobject feature:
...
- Trim overly long names to prevent incorrect item display
- Use getLocaleName() for proper locale-aware to_lower conversion
- Implement scoring-based sorting for better search match ranking
- Remove Boost dependency: replace with std::string::find() and rfind()
2025-03-11 23:22:04 +01:00
2973a769df
Remove setting up en_US.UTF-8 locale in VCMIDirsWIN32::init()
2025-03-11 23:22:04 +01:00
e993c2aed0
Use locale based on language set in config
2025-03-11 23:21:12 +01:00
38b994f28e
Init lastWrite and date for campaigns
2025-03-11 22:36:26 +01:00
ea1c911e4d
Update maps sorting logic
2025-03-11 22:36:26 +01:00
e273263334
Fix possible crash on accessing Cannon Yard from HotA
2025-03-11 13:41:14 +00:00
daacb73866
romanian plural
2025-03-09 20:38:30 +01:00
1def86a3ec
Move main town to the tile with highest distance to water shore
2025-03-09 18:46:59 +01:00
0424c8ad9c
fix
2025-03-08 20:15:10 +01:00
c49039a3f7
add romanian and bulgarian
2025-03-08 20:10:33 +01:00
99c6ca7e70
Fix build
2025-03-08 16:11:59 +00:00
62cb5412ff
CGameState::map is now a private, unique_ptr with accessors
2025-03-08 14:05:14 +00:00
b6026084ea
StartInfo in gamestate now use unique_ptr
2025-03-08 14:04:51 +00:00
82506d5eff
Removed ConstTransitivePtr from StackLocation
2025-03-08 14:04:51 +00:00
a061ed04de
Remove usage of ConstTransitivePtr from CTown
2025-03-08 14:04:51 +00:00
4a6a8f9496
Merge pull request #5496 from IvanSavenko/std_thread
...
Replace boost::thread with std::thread
2025-03-08 16:03:55 +02:00
2fdf40e7a9
Remove connection pointer from CPack
2025-03-03 10:46:00 +00:00
9f713a0914
Rename int3::valid to isValid for consistency
2025-03-03 10:46:00 +00:00
0ead6a50b5
Clarify TryMoveHero netpack fields
2025-03-03 10:46:00 +00:00
a31788b874
Replace thread spawning with tbb pool for adventure AI
2025-03-02 19:24:24 +00:00
5f052165fe
Fix missing names for some threads
2025-03-02 14:33:11 +00:00
dda48b3693
Fix build
2025-03-02 14:33:11 +00:00
64ac14fa06
Remove boost::thread from cmakelists
2025-03-02 14:33:11 +00:00
948abfb04c
AI now uses std::thread, added custom thread interruption logic
2025-03-02 14:33:11 +00:00
844dfb1604
Removed usage of boost::thread from vcmi, except for AI
2025-03-02 14:33:11 +00:00
3d205e0291
Remove CThreadHelper class, final usage replaced with tbb
2025-03-02 14:33:11 +00:00
a8a6be7ac1
Fix potential compatibility with C++20 / C++23 mode
...
This fixes several issues with compatibility with C++20. C++23 was also
tested, but apparently it does not have any additional breaking changes
compared to C++20 (or we don't have those).
VCMI still uses C++17 as before - goal is only to make potential
transition easier.
There were 2 cases that are deprecated in C++20 that we use:
- Floating point operations on enums are deprecated
- `this` can no longer be captured when using default capture by value
`[=]`
Both of those should now be replaced with code that works fine in both C+
+17 and in C++20 mode
2025-03-02 14:11:48 +00:00
f348e20a63
Merge pull request #5487 from IvanSavenko/game_engine_2
...
Reduce number of global variables
2025-03-02 12:43:16 +02:00
06be6b909c
Fix build, reduce includes of CConsoleHandler
2025-03-01 21:16:41 +00:00
dd1b877449
Replace several more globals with locals
2025-03-01 21:16:41 +00:00
782362e5ce
Remove console
global
2025-03-01 21:16:41 +00:00
33468f21ff
Remove custom implementation of threadpool from rmg in favor of TBB
2025-03-01 21:16:03 +00:00
f06e707108
Merge pull request #5488 from Laserlicht/boost
...
replace some boost functions with std
2025-03-01 23:15:01 +02:00
b0de99fe89
Merge pull request #5478 from heroesiiifan/translation
...
develop - add greek, japanese, norwegian; harmonize
2025-03-01 23:14:28 +02:00