1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-25 21:38:59 +02:00

7681 Commits

Author SHA1 Message Date
Ivan Savenko
3bbfee0e1c Fix usage of std::bitset 2025-01-31 11:41:44 +00:00
Ivan Savenko
313fa1e80e Remove commented-out code 2025-01-30 11:31:54 +00:00
Ivan Savenko
d8ec69bfaa Remove non-const iterators to BattleHexArray container
Replaced with several non-const methods to prevent modification of
internal storage without corresponding modification of internal flags
2025-01-29 23:02:51 +00:00
Ivan Savenko
5c8c69e665 Smarter logic for determining whether hex is inside the walls 2025-01-29 23:01:42 +00:00
Ivan Savenko
f4c3367e43 Workarounds for crashes from Google Play
- Do not crash on failure to read json from disk
- Add more debug information for crash on BattleHex access
2025-01-28 20:22:28 +00:00
Ivan Savenko
abc7168ff6 Consider units on wall hexes as 'inside' town for tower target selection 2025-01-26 15:51:54 +00:00
Ivan Savenko
112de6324f Do not show full damage range limit for units without range penalty 2025-01-26 15:51:09 +00:00
Ivan Savenko
f858a6e04b
Merge pull request #5266 from MichalZr6/battlefield
Minor fixes to BattleHexArray. BattleHex'es as const reference where possible.
2025-01-25 17:44:14 +02:00
Ivan Savenko
df99645eca
Merge pull request #5301 from IvanSavenko/map_loading_fix
Map loading fixes
2025-01-25 17:23:54 +02:00
Ivan Savenko
722d68643f
Merge pull request #5306 from IvanSavenko/xbrz_foreground
[1.6.4?] Move xbrz upscaling from foreground thread to background
2025-01-25 17:23:46 +02:00
Ivan Savenko
9a1c2a5800
Merge pull request #5317 from Laserlicht/search_inp
[1.6.4] improved text search
2025-01-25 13:54:27 +02:00
Ivan Savenko
5ea4014589
Merge pull request #5304 from IvanSavenko/oneway_ai
Enable one-way monoliths for AI
2025-01-25 13:42:31 +02:00
Ivan Savenko
09db3e4bef Reworked resource piles loading to fix wog maps with mithril 2025-01-25 11:40:21 +00:00
Ivan Savenko
baa9b1e312 Load unknown objects as "Nothing" object 2025-01-24 19:26:40 +00:00
Ivan Savenko
e4505f20b9 Remove no longer used map checksum computation 2025-01-24 19:26:40 +00:00
Laserlicht
0035b2346a optimized search input 2025-01-23 23:50:04 +01:00
Dydzio
4f707173df Try to fix build 2025-01-23 22:27:52 +01:00
Dydzio
1c1af5c04a Basic creature joining default behavior configuration 2025-01-23 22:04:35 +01:00
Ivan Savenko
32391dc7a9 Pathfinder cache is now stored separately per playerBlocked
- human player will now use pathfinder settings from config (as before)
- nullkiller AI will now use its own, modified settings
- added option to configure NKAI usage of monolith to config
- fixed pathfinder costs not updating on receiving levelup
2025-01-23 15:28:44 +00:00
Ivan Savenko
ced98f4698 Fix pathfinding reducing tile cost by only 1 point 2025-01-22 11:05:07 +00:00
Ivan Savenko
391986e0ba Moved image scaling & optimization logic to separate classes 2025-01-21 21:15:21 +00:00
Ivan Savenko
2ee5f2df02
Merge pull request #5295 from IvanSavenko/bugfixing
[1.6.4] Bugfixing for recently reported issues
2025-01-21 15:50:02 +02:00
MichalZr6
30bd975f95 Use unit->getHexes()
instead of battle::Unit::getHexes(stack->getPosition(), stack->doubleWide(), stack->unitSide())
2025-01-21 13:23:18 +01:00
MichalZr6
a1593948b7 Restore LF, use JsonKeys for logging, fix BattleHex description 2025-01-21 13:23:17 +01:00
MichalZr6
ecdd394bb1 Use BattleHex as const ref wherever possible
Minor Fixes
Drop unused function from BattleHexArray
2025-01-21 13:23:17 +01:00
MichalZr6
8f63a82d60 Minor changes with BattleHex and BattleHexArray 2025-01-21 13:23:17 +01:00
Ivan Savenko
ff2de1661a Enable one-way monoliths for AI 2025-01-20 21:34:10 +00:00
Ivan Savenko
e26fe815e9
Merge pull request #5293 from godric3/fix-using-specific-hero-in-campaing-bonus
Fix loading vcmp campaign with specific hero used in scenario bonuses
2025-01-20 16:26:09 +02:00
Ivan Savenko
6b387e5d17 Fix integer overflow when total resource amount is above (int max / 100) 2025-01-20 11:17:32 +00:00
Ivan Savenko
ed70e94f9a Better reporting for configurable building initialization crash 2025-01-19 16:13:12 +00:00
Ivan Savenko
2823bf5848 Minor code simplifaction 2025-01-19 12:41:02 +00:00
Ivan Savenko
82b81a7853 Added better error reporting for unclear crashes 2025-01-19 12:39:22 +00:00
Ivan Savenko
232e70c03a Try to fix unclear, rare crash on saving the game 2025-01-18 19:51:31 +00:00
Ivan Savenko
3d56375ec0 Fix possible crash on loading game with broken mods active 2025-01-18 19:50:25 +00:00
Ivan Savenko
f132fad14e Fix spells banned on map appearing in towns, cleanup code 2025-01-18 19:49:56 +00:00
Ivan Savenko
2a16767cdc Fix FREE_SHOOTING bonus check (including war machines) 2025-01-18 19:49:30 +00:00
Ivan Savenko
b33b880482 Do not add dead units as 'adjacent', since all callers assume this 2025-01-18 19:48:59 +00:00
godric3
dea6a02e1c Fix loading vcmp campaign with specific hero used in scenario bonuses 2025-01-18 14:50:34 +01:00
Laserlicht
24a39a8b48 clear generated assets only on client 2025-01-17 19:27:33 +01:00
Ivan Savenko
e829d723b2 Replace global bonus tree change counter with per-node counter 2025-01-12 12:23:07 +00:00
Ivan Savenko
5ec5e23534 Add caching for commonly accessed values 2025-01-12 12:21:10 +00:00
Ivan Savenko
5bfc837a8f Fix regressions from battlehex PR (mostly related to towers) 2025-01-12 11:07:50 +00:00
Ivan Savenko
14320fb100 Fix spawned wandering monsters not correctly attached to bonus system 2025-01-12 11:06:45 +00:00
Ivan Savenko
48473b18f6 move checks for invincible bonus to UnitState & cache 2025-01-10 21:15:37 +00:00
Ivan Savenko
40bff74195 Use small vector for unit list 2025-01-10 18:58:46 +00:00
Ivan Savenko
3b35c679ce Optimize Unit::getHexes method 2025-01-10 15:07:59 +00:00
Ivan Savenko
5375d61d1b Optimize battleAdjacentUnits method 2025-01-10 14:27:12 +00:00
Ivan Savenko
a44bbf4527
Merge pull request #5044 from MichalZr6/battle_hex_array
New container for BattleHexes. Refactors aiming for quick-battle better performance.
2025-01-10 15:32:05 +02:00
Ivan Savenko
699709adf0 Fix not accounting for movement points limit on land bonuses 2025-01-09 19:34:24 +00:00
Ivan Savenko
ed268159f8
Merge pull request #5231 from dydzio0614/random-hero-info
Replace random hero info in scenario info window with generated hero data
2025-01-09 12:58:55 +02:00