1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-27 21:49:10 +02:00

7669 Commits

Author SHA1 Message Date
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
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
Dydzio
eb4b8fdddd Replace random hero info in scenario info window with generated hero data 2025-01-08 21:01:15 +01:00
Ivan Savenko
e27ca391b1 Fix counter-attack counting 2025-01-08 16:06:31 +00: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
Ivan Savenko
ca4227ba9d Add debug information for crash on object randomization 2025-01-07 15:06:49 +00:00
Ivan Savenko
cfac768b6e Fix possible crash on corrupted h3 data / vcmi config 2025-01-07 15:05:57 +00: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