1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00
Commit Graph

7110 Commits

Author SHA1 Message Date
ffaaa7da15 blockingDialog functions: the answer parameter can be negative 2024-08-09 00:28:28 +02:00
79f5d260a4 use primary skill array 2024-08-08 22:03:54 +08:00
e0ab760a2f code review 2024-08-07 21:26:22 +02:00
65af198fbf Merge pull request #4341 from vcmi/force_portal_connection
Add RMG connection option "forcePortal"
2024-08-07 13:07:45 +03:00
475b769eef fix ToW 2024-08-07 01:35:50 +02:00
14bcfad7b0 fix upgrade 2024-08-06 23:28:45 +02:00
a4dd510735 Merge pull request #4358 from IvanSavenko/integer_divide
Add helper functions for integer division rounding
2024-08-06 18:10:03 +03:00
3b6ff46d2b Merge pull request #4360 from IvanSavenko/terminate_handler
Enabled terminate handler and call stack writing on all platforms
2024-08-06 18:09:51 +03:00
758617e2df order 2024-08-06 09:39:16 +02:00
0c3778feda id 2024-08-06 09:35:06 +02:00
abd1a1940a fix recruitment & icons 2024-08-06 01:02:38 +02:00
ebeeff5aa3 abstraction layer 2024-08-05 23:51:07 +02:00
3afddbbf29 replaced constant 2024-08-05 23:03:19 +02:00
1a06a2cc44 basic 8th creature support 2024-08-05 21:15:47 +02:00
87eb026184 support 0 spellpower and knowledge 2024-08-06 01:26:39 +08:00
b7391f49f6 Merge branch 'vcmi/master' into 'vcmi/develop' 2024-08-05 10:36:10 +00:00
47327e1642 backend 2024-08-04 17:52:40 +02:00
072af5bd6d basic support for bank 2024-08-04 15:44:57 +02:00
611d5daa0f fix missing code + movement points used 2024-08-03 20:47:20 +02:00
eca04cbc54 added 5 values 2024-08-03 19:53:05 +02:00
de128eb471 add dwellings & expirience 2024-08-03 18:48:45 +02:00
9d64059496 code review 2024-08-03 17:55:43 +02:00
f0c0beb9e0 date according to iso8601 2024-08-03 16:39:46 +02:00
81e6207df0 Add helper functions for integer division rounding
Added set of functions that perform integer division with different
rounding modes:
- divideAndCeil - rounds up to next integer
- divideAndRound - rounds to nearest integer
- divideAndFloor - rounds to previous integer (equivalent to default
division)

Intended for use in library, where usage of floating point might lead to
desync in multiplayer games.

Replaced some cases that I knew of, including recent handicap PR
2024-08-03 13:52:14 +00:00
3d856bfa9d Merge remote-tracking branch 'origin/develop' into battle-ai-fixes 2024-08-03 12:54:25 +03:00
58bfd27aad add some stats 2024-08-02 20:40:24 +02:00
b3b7729a6c fix 2024-08-02 20:06:30 +02:00
13b2008f79 Enabled terminate handler and call stack writing on all platforms
Attempt to get a bit more debug info from crashes. VCMI will now:
- use c++ terminate handler on any platform in release builds
- attempt to write call stack to log file using boost::callstack

Since I use std::set_terminate this will only affect c++ exceptions, e.g.
std::runtime_error and will not affect OS signals, e.g. SIGSEGV. Handling
signals is OS-specific and has a lot of limitations that I don't want to
investigate. Besides - most of our crashes are now caused by c++
exceptions.

Haven't tested on other platforms, but should at the very least write
exception information (`e.what()`) for all exceptions and function names
for methods exported from dll's (libvcmi.so & AI's). Possibly more, if
debug information is present.
2024-08-02 17:59:56 +00:00
80dd97364a add additional statistic 2024-08-02 19:38:33 +02:00
9ceb1c567d highscore refactoring 2024-08-02 19:37:46 +02:00
5023e08ae8 Fix crash on testing for hero faction before deserializing hero type 2024-08-02 16:00:17 +00:00
13108849ca Try to fix crash on transferring component of a composite artifact 2024-08-02 16:00:17 +00:00
0ac1ef077d Workaround for hota witch hut preview 2024-08-02 16:00:07 +00:00
8ce6bcdf3b Right-clicking dwellings will now show recruitable creatures (but not
their number) for all players
2024-08-02 15:03:25 +00:00
86477c7b04 refactoring + values added 2024-08-02 01:18:39 +02:00
33b2633775 refectoring: remove statsHLP 2024-08-02 00:04:41 +02:00
f695f7038e cleanup 2024-08-01 23:56:06 +02:00
06209d2556 Merge branch 'develop' into statistic 2024-08-01 23:37:45 +02:00
2979bf1976 visitedRatio 2024-08-01 23:21:41 +02:00
380d5bb05b refactoring & expanding 2024-08-01 22:36:32 +02:00
4f0c3a3608 Merge branch 'develop' into handicap 2024-08-01 21:39:40 +02:00
490f1bfee6 rework 2024-08-01 21:36:00 +02:00
fb171ab3a2 statisic basic 2024-08-01 21:36:00 +02:00
88eff2609b Merge pull request #4332 from Laserlicht/campaign_highscores
fix campaign highscores
2024-08-01 21:16:50 +03:00
4413f03276 Cleanup 2024-07-30 08:50:33 +02:00
a7fa3c7d8b Ignore new connections for zone placement. 2024-07-30 05:07:05 +02:00
f7376b8fd3 Merge branch 'vcmi:develop' into handicap 2024-07-29 23:10:20 +02:00
48173ebfbf fix uninitialized var 2024-07-29 23:05:55 +02:00
3e5df61946 code review 2024-07-29 22:54:42 +02:00
d10711928f Allow connecting zone to itself (always through the portal) 2024-07-29 21:56:07 +02:00