Alexander Wilms
|
2ea78a5883
|
Fix float comparisons
Replace this "==" with a more tolerant comparison operation.
Floating point numbers should not be tested for equality cpp:S1244
|
2024-02-14 23:30:29 +01:00 |
|
Ivan Savenko
|
110ef5f66e
|
Merge pull request #3614 from IvanSavenko/sonarcloud_fixes_2
Sonarcloud fixes 2
|
2024-02-14 16:44:58 +02:00 |
|
Ivan Savenko
|
3740f8b02f
|
Moved bonus parsing to a new file
|
2024-02-14 15:48:06 +02:00 |
|
Ivan Savenko
|
0b7bf56597
|
Remove old files
|
2024-02-14 14:02:41 +02:00 |
|
Ivan Savenko
|
c3957c2c2a
|
Moved json files to new directory, split on per-class basis
|
2024-02-14 13:08:24 +02:00 |
|
Ivan Savenko
|
c23953eac5
|
Remove custom casts
|
2024-02-14 12:56:37 +02:00 |
|
Ivan Savenko
|
0d74959a33
|
Better float comparison
|
2024-02-14 12:07:07 +02:00 |
|
Ivan Savenko
|
6d6137accc
|
Simplified code
|
2024-02-14 12:07:07 +02:00 |
|
Ivan Savenko
|
45c971a405
|
Replace throws() with nothrow
|
2024-02-14 12:07:07 +02:00 |
|
Ivan Savenko
|
7359b66f99
|
Do not use floating point equality checks
|
2024-02-14 12:07:07 +02:00 |
|
Ivan Savenko
|
9ebd194ab1
|
Merge pull request #3609 from IvanSavenko/single_process
Allow running server as part of client process
|
2024-02-14 12:06:22 +02:00 |
|
Alexander Wilms
|
678cacbd25
|
Remove more redundant virtual specifiers
`grep -nr "virtual " | grep -v googletest | grep " override" | grep -v overriden > ../redundant_virtual.txt`
```python
import os
with open("../redundant_virtual.txt") as f:
for line in f:
print()
line: str = line.strip()
print(line)
tmp = line.split(":",2)
file = tmp[0].strip()
code = tmp[-1].strip()
print(file)
print(code)
new_code = code.replace("virtual ", "", 1)
# https://superuser.com/a/802490/578501
command = f"export FIND='{code}' && export REPLACE='{new_code}' && ruby -p -i -e \"gsub(ENV['FIND'], ENV['REPLACE'])\" {file}"
os.system(command)
```
|
2024-02-13 15:21:30 +01:00 |
|
Ivan Savenko
|
763e18d202
|
Fix symlink target - use absolute path
|
2024-02-12 16:35:18 +02:00 |
|
Ivan Savenko
|
4c70abbeb5
|
Reduced usage of global variables - removed or made const / constexpr
|
2024-02-12 13:49:45 +02:00 |
|
Ivan Savenko
|
6e399eb21a
|
Make some non-const static variables const or constexpr
|
2024-02-12 13:22:54 +02:00 |
|
Ivan Savenko
|
6db405167d
|
Clarified some (im)possible null dereferences
|
2024-02-12 13:05:30 +02:00 |
|
Ivan Savenko
|
392c360f88
|
Replaced some usages of void * with more clear CPack *
|
2024-02-12 12:53:10 +02:00 |
|
Ivan Savenko
|
b796ed8626
|
Fix undefined behavior
|
2024-02-12 12:33:09 +02:00 |
|
Ivan Savenko
|
c03196257f
|
Fix "identical expressions on both sides of comparison"
|
2024-02-12 12:32:35 +02:00 |
|
Ivan Savenko
|
c577ea3e8d
|
Fix potentially uninitialized values
|
2024-02-12 12:31:27 +02:00 |
|
Ivan Savenko
|
a909d7ddde
|
Removed cmake_modules/VCMI_lib macro, use it directly in place
|
2024-02-11 20:38:24 +02:00 |
|
Ivan Savenko
|
19ccef7131
|
Fix build
|
2024-02-11 19:54:30 +02:00 |
|
Ivan Savenko
|
cded8b1999
|
Show human-readable thread name in log
|
2024-02-11 17:55:02 +02:00 |
|
Ivan Savenko
|
f08c9f4d59
|
Renamed ENABLE_STATIC_AI_LIBS option to match its actual effect
|
2024-02-11 17:55:02 +02:00 |
|
Ivan Savenko
|
0d263c5571
|
Implemented option to run server as a thread with shared VLC
|
2024-02-11 17:55:02 +02:00 |
|
Ivan Savenko
|
c2286e5126
|
Server now consists from library and separate executable projects
|
2024-02-11 17:55:02 +02:00 |
|
Ivan Savenko
|
ef8eb330d6
|
Merge branch 'develop' into random_template_description
|
2024-02-11 17:54:18 +02:00 |
|
Ivan Savenko
|
f1a8e78f0b
|
Merge pull request #3596 from vcmi/fixes_for_water
Fixes for RMG water
|
2024-02-11 17:53:46 +02:00 |
|
Ivan Savenko
|
7790acae3a
|
Fix save compatiblity with 1.4
|
2024-02-11 17:31:30 +02:00 |
|
Ivan Savenko
|
f2ecd4cf11
|
Merge branch 'develop' into 'lobby'
|
2024-02-11 16:13:13 +02:00 |
|
Ivan Savenko
|
ad602573ff
|
Merge pull request #3600 from dydzio0614/sod-fly
Fix SoD fly mechanics
|
2024-02-11 12:26:20 +02:00 |
|
Alexander Wilms
|
54b44aa5e8
|
Re-add virtual that was accidentally removed
|
2024-02-10 20:46:23 +01:00 |
|
Alexander Wilms
|
522cb571b3
|
Remove redundant virtual specifiers
`grep -nr virtual | grep -v googletest | grep override > ../redundant_virtual.txt`
```python
import os
with open("../redundant_virtual.txt") as f:
for line in f:
print()
line: str = line.strip()
print(line)
tmp = line.split(":")
file = tmp[0].strip()
code = tmp[-1].strip()
print(file)
print(code)
new_code = code.replace("virtual ", "", 1)
# https://superuser.com/a/802490/578501
command = f"export FIND='{code}' && export REPLACE='{new_code}' && ruby -p -i -e \"gsub(ENV['FIND'], ENV['REPLACE'])\" {file}"
os.system(command)
```
|
2024-02-10 20:46:13 +01:00 |
|
Dydzio
|
fd9810adf4
|
Working SoD version of fly
|
2024-02-07 19:27:02 +01:00 |
|
Ivan Savenko
|
18f9d29fd2
|
Fix typo
|
2024-02-07 00:15:20 +02:00 |
|
Ivan Savenko
|
9730b24214
|
Fix typo
|
2024-02-06 16:36:57 +02:00 |
|
Ivan Savenko
|
fd17133da3
|
Fix editor build
|
2024-02-06 00:40:26 +02:00 |
|
Ivan Savenko
|
1cecaf2bf5
|
Skip unresolved identifier from list of allowed heroes/artifacts in vmap
|
2024-02-05 22:26:53 +02:00 |
|
Ivan Savenko
|
a18f9d1e8d
|
Added workaround for references to old 'torosar ' ID
|
2024-02-05 21:56:06 +02:00 |
|
Ivan Savenko
|
9e09fe08e1
|
Fixed duplicated hero check - was used too early, before hero type is
loaded
|
2024-02-05 21:55:48 +02:00 |
|
Ivan Savenko
|
87059be67b
|
Added range checks to values read from h3m.
Fixes reading of morale/luck values (-3..3) as unsigned leading to
overflow.
|
2024-02-05 21:27:55 +02:00 |
|
Ivan Savenko
|
4af4d1a75e
|
Remove excessive logging
|
2024-02-05 21:11:00 +02:00 |
|
Ivan Savenko
|
342e6daebd
|
Fix copy-paste error
|
2024-02-05 21:07:50 +02:00 |
|
Ivan Savenko
|
9e5e7d95c3
|
Workaround for broken save compatibility
|
2024-02-05 18:46:48 +02:00 |
|
Ivan Savenko
|
b3c5882e11
|
Workaround for broken save compatibility
|
2024-02-04 21:22:51 +02:00 |
|
Ivan Savenko
|
d4bedd8d8d
|
Fixed handling of match server crash
|
2024-02-04 19:58:09 +02:00 |
|
Tomasz Zieliński
|
af3c6450a7
|
Update comments
|
2024-02-04 08:56:45 +01:00 |
|
Tomasz Zieliński
|
7ce3553a6d
|
Fix race condition when placing object at teh shore
|
2024-02-04 08:56:21 +01:00 |
|
Tomasz Zieliński
|
6528124c1e
|
Do not fill water zone with obstacles
|
2024-02-04 08:55:51 +01:00 |
|
Ivan Savenko
|
7dee24edae
|
Cleanup
|
2024-02-03 23:30:16 +02:00 |
|