Marco Antonio J. Costa and majcosta
86ad401186
add newline at end of file where it's lacking
...
.editorconfig already enforces it but it's getting changed piecemeal in
every commit. just get it done with.
the script:
```
find . -type f -not -path "./.git/*" -not -path "./.vs/*" | while read -r file; do
isFile=$(file -0 "$file" | cut -d $'\0' -f2)
case "$isFile" in
(*text*)
echo "$file is text"
if [[ $(tail -c 1 "$file" | wc -l) -ne 1 ]]; then
echo "" >> "$file"
fi
;;
(*)
echo "file isn't text"
;;
esac
done
```
2024-12-14 19:05:48 -03:00
Asdow and GitHub
dcde413b7b
Initialize AI morale to normal instead of hopeless ( #345 )
2024-12-05 23:05:50 +02:00
Asdow and GitHub
1eff9f6aaa
Fix bloodcat ambush endless loop ( #343 )
...
Some bloodcats during ambushes could have ubInsertionDirection with values > 100, which then causes endless looping in pathfinding algorithms as valid direction values range from 0 to 7
2024-12-05 16:13:09 +02:00
Asdow and GitHub
11bb0f741f
Fix music playing when crepitus is present ( #341 )
...
UseCreatureMusic( HostileZombiesPresent() ); was overriding the music mode set in PrepareCreaturesForBattle() when encountering crepitus or being in the creature caves, resulting in regular tense and battle music being played.
2024-12-02 01:10:58 +02:00
Asdow
d0dbb9afb1
Remove unused function
2024-12-01 21:37:52 +02:00
Asdow
1013531a7f
Remove #pragma optimize("", off) calls
2024-12-01 21:17:23 +02:00
Asdow
bfb724eab9
Use SoldierID
2024-12-01 18:23:52 +02:00
Asdow
e59d915e58
Use SoldierID
2024-12-01 00:20:41 +02:00
Asdow
4e8c5fa9ab
Remove unused function & globals
2024-11-30 23:50:17 +02:00
Asdow
de56f653ec
Use SoldierID
2024-11-30 23:47:00 +02:00
Asdow
c2b1ac0109
use SoldierID
2024-11-30 18:29:17 +02:00
Asdow
66f5156f03
Use SoldierID
2024-11-30 16:52:18 +02:00
Asdow
4645a09722
Use SoldierID
2024-11-30 16:07:36 +02:00
Asdow
24656f2810
Use SoldierID
2024-11-30 15:20:18 +02:00
Asdow
0d97e36c34
Use SoldierID
2024-11-21 23:56:44 +02:00
Asdow
1ac5d153fb
Correct inc/dec operator overloads
2024-11-21 23:55:51 +02:00
Asdow
99703fa8b6
Use SoldierID
2024-11-20 21:52:28 +02:00
Asdow
58bfffff55
Simplify if checks
2024-11-20 21:27:46 +02:00
Asdow
7fffcd295c
Simplify function
2024-11-20 21:27:18 +02:00
Asdow
65a8b4fd77
Use SoldierID
2024-11-20 21:19:28 +02:00
Asdow
8856813768
Lessen copy & paste
2024-11-20 21:03:54 +02:00
Asdow
dbc4135974
Use SoldierID
2024-11-20 21:03:08 +02:00
Asdow
d826491c83
Remove unused function parameter
2024-11-20 20:26:50 +02:00
Asdow
e4fe066da0
Fix comment
2024-11-20 19:56:30 +02:00
Asdow
cebd20f5d0
Update ShopKeeper Interface.cpp
2024-11-20 00:47:51 +02:00
Asdow
aee7c23aa4
Update Air Raid.cpp
2024-11-20 00:35:29 +02:00
Asdow
a670aff29c
Combine loops to check for medics and patients
2024-11-20 00:13:25 +02:00
Asdow
8b90c84738
Convert DisplayCharStats() to SoldierID
...
Moved two repeated print calls to their own functions
Removed compiler warning about exceeding stack size
2024-11-19 23:20:45 +02:00
Asdow
3f448a62fb
Remove unused functions
2024-11-19 00:08:46 +02:00
Asdow
47824c97a1
Fix UB compilation
2024-11-18 23:58:04 +02:00
Asdow
191af4da49
Update SoldierID constructors
2024-11-18 23:38:43 +02:00
Asdow
94a5972a85
Perform explicit casts from UINT8 to UINT16 for SoldierID
2024-11-18 23:38:00 +02:00
Asdow
1e16de30d7
Remove wrong cast
2024-11-18 23:22:19 +02:00
Asdow
327046925b
Converto to SoldierID
2024-11-18 23:20:42 +02:00
Asdow
df01708ac3
Update Soldier Control.cpp
2024-11-18 23:20:14 +02:00
Asdow
2387667a23
Initialize SOLDIERTYPE SoldierIDs to NOBODY
...
memset in initialize() function sets them all to zero
2024-11-18 23:20:04 +02:00
Asdow
883ceb2f6f
Convert to SoldierID
2024-11-18 23:14:34 +02:00
Asdow
924ccd8815
Use ubID instead of cnt
2024-11-18 23:14:22 +02:00
Asdow
9bbec030d8
Remove unnecessary casts
2024-11-18 23:14:03 +02:00
Asdow
bc01bdb56d
Convert to SoldierID
2024-11-18 23:12:43 +02:00
Asdow
cd83fac928
Update Air Raid.cpp
2024-11-18 23:12:27 +02:00
Asdow
38b710343a
Fix incorrect function argument
2024-11-18 22:38:09 +02:00
Asdow
3ddc4c2bbd
Change to SoldierID
2024-11-18 22:24:55 +02:00
Asdow
d2388c76b8
Modify SoldierID constructor to prevent invalid valuels
2024-11-18 21:43:30 +02:00
Asdow
07420ce245
Revert "Guard against out of bounds access"
...
This reverts commit c75f57785e .
2024-11-18 21:42:13 +02:00
Asdow
e62684f0e1
Convert GetSoldierIDFromMercID() to SoldierID
2024-11-18 18:50:20 +02:00
Asdow
c75f57785e
Guard against out of bounds access
...
Can't trust a simple != check
2024-11-18 18:49:38 +02:00
Asdow
f49013307f
Convert to SoldierID
2024-11-18 01:01:57 +02:00
Asdow
657097aa54
Remove unused global
2024-11-17 23:47:26 +02:00
Asdow
b74ccf3ddc
Convert to SoldierID
2024-11-17 23:45:48 +02:00