Ivan Savenko
a6a929eb95
Revert "Fix crash on attempting to connect newly created lobby room"
...
This reverts commit f42d4dc75836acca81e5572f6cbd3beadead778a.
2025-02-25 14:01:49 +00:00
Ivan Savenko
f42d4dc758
Fix crash on attempting to connect newly created lobby room
2025-02-22 14:20:45 +00:00
Ivan Savenko
f210bd9cb3
Fix crash on winning map on 7-day town timer running out for enemy
2025-02-06 14:15:12 +00:00
Ivan Savenko
048fc503c3
Do not start listening for connections in single-player games
2025-02-03 17:24:02 +00:00
Ivan Savenko
d9244cf061
Remove network connection from local games
...
This removes need for TCP network connection in single-player games.
Instead, game will now create internal pseudo-connection that performs
client<->server communication by posting sent messages to client/server
asio::io_service'a.
This should fix gameplay aborting on switching to another app on iOS (and
apparently, on Android in some cases)
2025-02-03 17:24:02 +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
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
ecdd394bb1
Use BattleHex as const ref wherever possible
...
Minor Fixes
Drop unused function from BattleHexArray
2025-01-21 13:23:17 +01: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
b946d36bb0
Fix crash on winning game by capturing town that is victory condition
...
without defeating all enemies first
2025-01-18 19:51:09 +00:00
Ivan Savenko
e829d723b2
Replace global bonus tree change counter with per-node counter
2025-01-12 12:23:07 +00:00
Ivan Savenko
48473b18f6
move checks for invincible bonus to UnitState & cache
2025-01-10 21:15:37 +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
9f56c00336
Reduce excessive FoW updates
2025-01-08 20:07:42 +00: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
8c3a417527
Cleanup
2025-01-06 23:18:20 +01:00
MichalZr6
a99274d72e
BattleHexArray - new container for BattleHexes
2025-01-06 23:18:18 +01:00
Ivan Savenko
dea1eba20b
Rework and optimize turnInfo used by pathfinder
2025-01-04 15:09:50 +00:00
Ivan Savenko
16cfb51f3e
Initial version of new bonus caching system
2025-01-04 15:09:50 +00:00
Ivan Savenko
33daf5c199
More robust checks for old saves removal
2025-01-01 20:57:43 +00:00
Laserlicht
d657bd8e20
fix campaign scenario order #3601
2024-12-27 18:58:05 +01:00
Ivan Savenko
65fc50d33b
Simplified building ID logic
...
- Replaced overcomplicated and broken math on dwelling ID's with fixed
enum
- Fixed broken 2nd upgrades and 8th dwelling
- Removed no longer used enumeration values from building ID's
2024-12-25 19:16:21 +00:00
Ivan Savenko
cd67ced178
Merge pull request #5110 from IvanSavenko/ai_optimize
...
[1.6.1] AI optimization
2024-12-25 00:12:38 +02:00
Ivan Savenko
8c6208be04
Fixes for crashes discovered via Google Play
...
- Fix crash on attempt to enable mod with recursive dependencies
- Fix crash on attempt to enable Chronicles after failed install
- Fixed crash on attempt to access non-installed mod when repository
checkout is off
- Show error message on failure to load filesystem instead of crash in
launcher
- Added workaround for crash on attempt to delete nonexisting save/map
- Added logging of mod settings to log file to simplify debugging
2024-12-23 18:00:35 +00:00
Ivan Savenko
95a07ee5cb
Use bonus system cache whenever possible
2024-12-21 18:47:11 +00:00
MichalZr6
f893c80192
Move UpgradeInfo class to header and source files
2024-12-19 14:13:09 +01:00
MichalZr6
af9445c16f
Fixes following review
2024-12-17 22:34:06 +01:00
MichalZr6
bbc41fc1b9
fix typo, fix unused variable
2024-12-17 22:34:06 +01:00
MichalZr6
d8d3948ac3
Fix AI to use hillFort all available upgrades. UpgradeInfo refactor.
2024-12-17 22:34:06 +01:00
Ivan Savenko
ade46d5ffb
Merge branch 'develop' into timed_events_objects_removal
2024-12-06 15:33:33 +02:00
Dydzio
7be31c94f2
Fixes from code review
2024-12-05 21:16:06 +01:00
Dydzio
e9be46af98
Merge branch 'develop' into timed_events_objects_removal
2024-12-03 17:27:24 +01:00
Laserlicht
6af8b62dfd
more strings; camelcase
2024-12-01 18:48:09 +01:00
Laserlicht
78e933a968
add broadcast to translation
2024-12-01 18:29:07 +01:00
Ivan Savenko
f74cd32147
Moved weekly income bonus for AI to game settings
2024-11-26 18:43:25 +00:00
Ivan Savenko
4180ea9523
Merge pull request #4274 from Xilmi/develop
...
Rule based AI
2024-11-26 18:32:58 +02:00
Ivan Savenko
3fb26a9775
Merge pull request #4983 from IvanSavenko/fix_freeze_on_cancel
...
Fix freeze on closing server before starting the game
2024-11-26 18:11:45 +02:00
Ivan Savenko
ba9e3dca9d
Mod management rework, part 1
...
- Replaced CModInfo class with constant ModDescription class
- Simplified mod loading logic
- Extracted some functionality from ModHandler into separate classes for
future reuse by Launcher
2024-11-26 13:55:46 +00:00
Xilmi
b750937588
Merge remote-tracking branch 'upstream/develop' into develop
2024-11-25 18:49:45 +01:00
Ivan Savenko
14a3c6ad14
Fix freeze on closing server before starting the game
...
Fixes possible freeze that seems to be caused by client shutting down
socket before sending its final LobbyClientDisconnected packet, leading
to server not processing disconnection of host correctly, which in turn
causes client to wait server shutdown forever.
Looks like regression from #4722
- Fixes #4912 and its duplicates
2024-11-25 17:31:20 +00:00
Xilmi
65f2d0c44e
Merge remote-tracking branch 'upstream/develop' into develop
2024-11-21 23:14:03 +01:00
Ivan Savenko
aef6b0cc00
Fix several new issues detected by SonarCloud
2024-11-20 16:06:38 +00:00
Ivan Savenko
f0a71c9e21
Merge pull request #4935 from IvanSavenko/misc_fixes2
...
Miscellaneous fixes for reported issues
2024-11-18 13:29:05 +02:00
Ivan Savenko
877d11d4c0
Merge pull request #4920 from kdmcser/fix_attack_crash
...
fix crash: spell before attack kill defender will lead to crash
2024-11-18 12:56:37 +02:00
Ivan Savenko
c82db9d574
Fix crash on rearranging troops on non-owned hero
2024-11-17 17:38:54 +00:00
kdmcser
7cb8ca174e
fix crash: defender is killed by spell before attack, but attacker still do attack action
2024-11-17 01:00:23 +08:00
Ivan Savenko
c3b63a1bef
Merge pull request #4857 from Laserlicht/delete
...
Delete saves / random maps
2024-11-16 17:28:23 +02:00
Laserlicht
b23c69b9d6
code review
2024-11-15 20:26:56 +01:00
Ivan Savenko
7be44278d7
Merge pull request #4892 from SoundSSGood/artifact-related-fixes
...
Artifact related fixes
2024-11-13 20:58:37 +02:00
SoundSSGood
ef46a87e69
ask assemble artifact dialog fix
2024-11-10 16:50:58 +02:00