1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-23 21:29:13 +02:00

6903 Commits

Author SHA1 Message Date
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
662e0f8541
Merge pull request #5222 from kambala-decapitator/use-sdl_ttf-type
use TTF_Font from SDL_ttf directly
2025-01-09 12:58:34 +02:00
Ivan Savenko
9fe8ee9380 Fix size of tiny popup windows, such as terrain right-click 2025-01-08 14:33:30 +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
2ca77ed6ec Fix possible crash on invalid upscaling filter set in config 2025-01-07 15:06:26 +00:00
Ivan Savenko
ed2825d4f2 Fix possible crash on corrupted video file 2025-01-07 15:05:25 +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
7a8edff419 minor fixes 2025-01-06 23:28:44 +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
MichalZr6
f792eb2da5 Add time measurement for auto-battle 2025-01-06 23:13:55 +01: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
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
19c981fc56 Added similar screen for Obelisk, moved assets to dedicated folder 2025-01-06 13:05:45 +00: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
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
Ivan Savenko
fa1683c889
Merge pull request #5194 from Laserlicht/patch-3
[1.6.x] add scrollbar for hero overview descriptions if necessary
2025-01-04 22:27:46 +02:00
Ivan Savenko
157d6d30c8 Move rest of commonly-accessed UnitState queries to bonus cache 2025-01-04 15:09:50 +00:00
Laserlicht
c7963cf62f fix TeleporterPopup out of screen 2025-01-04 02:01:44 +01:00
Laserlicht
0f745d5f1b fix long texts in popup 2025-01-04 01:23:26 +01:00
Laserlicht
f02a61e546
optimize for touch input 2025-01-03 14:49:35 +01:00
Laserlicht
076af53733
add scrollbar for hero overview 2025-01-03 14:34:52 +01:00
Ivan Savenko
aeeb4ea533
Merge pull request #5181 from Laserlicht/android_right_mouse_fix
[1.6.2] Option to fix right mouse button on some android devices
2025-01-02 21:59:29 +02:00
Ivan Savenko
698d43e195 Fix crash on attempt to flip empty image 2025-01-01 21:00:43 +00:00
Ivan Savenko
51ceb068a7 Try to handle crash on map selection screen 2025-01-01 21:00:25 +00:00
Ivan Savenko
69ee1a9098 Fix crash on reordering towns from town interface 2025-01-01 20:59:59 +00:00
Laserlicht
3870ac6c21 option to fix right mouse on some android devices 2025-01-01 18:39:49 +01:00
Ivan Savenko
1fd2c88167
Merge pull request #5164 from Laserlicht/campaign_fix
[1.6.2] multiple fixes
2024-12-30 21:52:49 +02:00
Ivan Savenko
8bf5c474d6
Merge pull request #5160 from Laserlicht/alt_town
[1.6.2] show building names with ALT
2024-12-30 21:52:32 +02:00
Laserlicht
c44b91de45 Update client/windows/CCastleInterface.cpp
Co-Authored-By: Ivan Savenko <saven.ivan@gmail.com>
2024-12-30 18:13:18 +01:00
Ivan Savenko
e24ab3e3e1
Merge pull request #5162 from Laserlicht/fix_margin
[1.6.2] fix margin (hd texture)
2024-12-30 14:54:03 +02:00
MichalZr6
4e9f052e98 Fix creature upgrades in Fort and town's dwellings 2024-12-30 01:14:57 +01:00
Laserlicht
0db8794d8b hide screen also for second custom campaign scen. 2024-12-27 21:40:09 +01:00
Laserlicht
7dba34c16e campaign list workaround 2024-12-27 21:22:45 +01:00
Laserlicht
50d3e71468 fix surrender video 2024-12-27 20:17:43 +01:00
Laserlicht
97e2480e7d blink only accessible scenarios 2024-12-27 19:09:01 +01:00
Laserlicht
72f498f2c8 add region blink #3601 2024-12-27 18:58:05 +01:00
Laserlicht
3beb78104e fix margin (hd texture) 2024-12-26 15:05:30 +01:00
Laserlicht
eb319fc15e show building names with ALT 2024-12-26 14:22:12 +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
0620161287
Merge pull request #5127 from IvanSavenko/hotfix
[1.6.1] Fixes for 1.6.0 issues reported on Discord
2024-12-25 00:12:55 +02: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
d58202d2a1
Merge pull request #5137 from Laserlicht/bonus
[1.6.1] Bonus display
2024-12-24 15:51:02 +02:00
Ivan Savenko
7b976d058e For PC don't go higher than xbrz2 until performance is fixed 2024-12-24 13:38:32 +00:00
Ivan Savenko
814234017d Minor tweaks to xbrz performance 2024-12-23 13:59:09 +00:00