Andrey Filipenkov
4e4684cedf
[cmake] set some policies
2025-01-08 15:22:21 +03:00
Andrey Filipenkov
6323e7b4da
[macOS] run hdiutil under sudo only on CI
2025-01-08 15:22:21 +03:00
MichalZr6
dbe82b94f6
Changes following review:
...
- shared_ptr for destructibleEnemyTurns instead of raw pointer
- drop implicit int conversion for BattleHex class
and implement toInt() instead
- implement necessary operators in BattleHex
- adjust code to work properly with JSON serializer
2025-01-08 07:24:43 +01:00
George King
b8ab3b3101
Update mainmenu.json
2025-01-08 01:38:32 +01:00
George King
f3d48ecc3a
Ability to use random progress bar
2025-01-08 00:16:55 +01:00
George King
905eac24ae
Multiplayer menu improvements
2025-01-07 19:30:26 +01:00
George King
8357bdd37f
Update mainmenu.json
2025-01-07 19:28:55 +01:00
godric3
68335f51d3
map editor: extract setting display and tooltip text method to base delegate class
2025-01-07 18:53:49 +01:00
Ivan Savenko
ca4227ba9d
Add debug information for crash on object randomization
2025-01-07 15:06:49 +00:00
Ivan Savenko
2ca77ed6ec
Fix possible crash on invalid upscaling filter set in config
2025-01-07 15:06:26 +00:00
Ivan Savenko
cfac768b6e
Fix possible crash on corrupted h3 data / vcmi config
2025-01-07 15:05:57 +00:00
Ivan Savenko
ed2825d4f2
Fix possible crash on corrupted video file
2025-01-07 15:05:25 +00:00
Ivan Savenko
228b585527
Fix validation of game settings
2025-01-07 14:07:16 +00:00
Ivan Savenko
9f1cd69480
Fix visualization of AI object graph
2025-01-07 14:06:09 +00:00
Andrey Filipenkov
3db1a01080
use TTF_Font from SDL_ttf directly
2025-01-07 12:09:11 +03:00
MichalZr6
4031006317
Drop battle elapsed time measurement, restore avHexes.
...
Github validation report fixes.
2025-01-06 23:28:47 +01:00
MichalZr6
dad6437661
Refactor BattleHex, remake the use of precomputed neighbouring tiles containers.
...
- Moved short, frequently used functions to the BattleHex header for inlining
- Made BattleHex a class with a private hex value
- Moved getClosestTile implementation back to BattleHex
- Enabled access to static precomputed data in BattleHexArray via BattleHex
(note: circular dependency prevented static precomputed containers being directly placed in BattleHex)
2025-01-06 23:28:46 +01:00
MichalZr6
ac8104d56d
SonarCloud recomendations.
...
Code review follow-up:
- Replace std::vector with boost::small_vector
- Rename function merge to insert
2025-01-06 23:28:45 +01:00
MichalZr6
44a645b5e0
use bitset for presenceFlags and steady_clock for measurments
2025-01-06 23:28:45 +01:00
MichalZr6
794595184e
use class scope static instead of function scope
2025-01-06 23:28:45 +01:00
MichalZr6
7a8edff419
minor fixes
2025-01-06 23:28:44 +01:00
MichalZr6
fb9a3da651
Unit.cpp refactor and some other minor changes
2025-01-06 23:28:44 +01:00
MichalZr6
e3516120d8
Refactor destructibleEnemyTurns
2025-01-06 23:18:20 +01:00
MichalZr6
8c3a417527
Cleanup
2025-01-06 23:18:20 +01:00
MichalZr6
78845706c9
GetClosestTile refactor
2025-01-06 23:18:19 +01:00
MichalZr6
5f799d41b3
Use cached neighbouring tiles where possible
2025-01-06 23:18:19 +01:00
MichalZr6
a99274d72e
BattleHexArray - new container for BattleHexes
2025-01-06 23:18:18 +01:00
MichalZr6
f792eb2da5
Add time measurement for auto-battle
2025-01-06 23:13:55 +01:00
Ivan Savenko
8406840f76
Merge pull request #5221 from IvanSavenko/fix_tests
...
Fix tests
2025-01-07 00:03:31 +02:00
Ivan Savenko
ef8408fa5a
Fix tests
...
Regression from #5158
2025-01-06 21:18:28 +00:00
Ivan Savenko
046b59cf77
Merge pull request #5219 from IvanSavenko/ai_building_fix
...
Fixes for AI town building logic
2025-01-06 21:55:24 +02:00
Ivan Savenko
08b513a7cd
Merge pull request #5216 from GeorgeK1ng/random_menu_background
...
Ability to use random main menu background
2025-01-06 21:52:58 +02:00
Ivan Savenko
0de62e0b96
Merge pull request #5211 from godric3/map-editor-town-same-as-player
...
Map editor: random town same as player faction
2025-01-06 21:52:48 +02:00
Ivan Savenko
094a037096
Merge pull request #5212 from IvanSavenko/keymaster_popup
...
Added popup for keymasters/border guards similar to teleporters
2025-01-06 21:52:23 +02:00
Ivan Savenko
3d3dd70a11
Simplify code, fix AI not building dwelling upgrades
2025-01-06 18:59:37 +00:00
godric3
494777987d
map editor: improve building inspector texts
2025-01-06 19:47:23 +01:00
godric3
5cfd4c9fff
map editor: remove no longer needed check - getTown() return also randomTown
2025-01-06 19:44:25 +01:00
Ivan Savenko
8468469976
Fixes for AI town building logic
...
- Fixes AI not considering non-built dwellings
- AI will now skip evaluation of towns in which construction today is no
longer possible
2025-01-06 16:20:53 +00:00
Ivan Savenko
19c981fc56
Added similar screen for Obelisk, moved assets to dedicated folder
2025-01-06 13:05:45 +00:00
Ivan Savenko
542538bdf6
Merge pull request #5210 from IvanSavenko/version_bump_163
...
Version bump to 1.6.3
2025-01-06 14:39:27 +02:00
George King
6c72aa4cbe
Improved "Create new map" dialog for map editor ( #5187 )
...
* Improve "Create new map" dialog
* Tweaks
* Tweaks
* Final tweaking
Optimized UI to look more consistent. Removed help button.
* Add files via upload
* Reworked dialog
* Formatting fix
* Add files via upload
* Add files via upload
* Add files via upload
* Fix seed condition
* Remove help button
* Remove help button
* Fixed labels
* Fix for Humans vs Computers combo
* Removed not needed connections + better radio names
* Update mapeditor/windownewmap.cpp
Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>
* Improve map size selection grabbing
* Remove QRegularExpression
* Reformat mapSizes
---------
Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>
2025-01-06 14:39:14 +02:00
Ivan Savenko
c3952b31f1
Merge pull request #5158 from IvanSavenko/bonus_caching
...
[1.6.3] Bonus caching improvements
2025-01-06 14:38:34 +02:00
Ivan Savenko
718f216fdd
Merge pull request #5209 from IvanSavenko/ai_graph_fix
...
Correctly initialize graph cost in turns instead of default 255 turns
2025-01-06 14:34:37 +02:00
George King
b4f6932f36
Ability to use random main menu background
2025-01-06 11:33:15 +01:00
Ivan Savenko
6d0dc9c5bb
Added popup for keymasters/border guards similar to teleporters
2025-01-05 23:22:46 +00:00
godric3
4b7792075d
map editor: option to set random town same as player faction
2025-01-05 21:57:11 +01:00
Ivan Savenko
53b08b726b
Version bump to 1.6.3
2025-01-05 20:33:29 +00:00
Ivan Savenko
f6f99d2384
Correctly initialize graph cost in turns instead of default 255 turns
2025-01-05 18:05:28 +00:00
godric3
15175a267c
map editor: show edited values in inspector
2025-01-05 17:19:51 +01:00
Ivan Savenko
73d1675ae3
Code cleanup, fixes to discovered regressions
2025-01-05 15:41:42 +00:00