Asdow
82aca548f5
Merge branch 'master' into ExtraMercs
2025-09-24 16:14:10 +03:00
BeatAroundTheBuscher and GitHub
ed00830202
Fixes Upper/Lower Casing for include paths ( #487 )
...
* Fixing upper/lower case for includes
types.h, zconf.h and zlib.h were renamed so that global includes like Types.h
are not used.
2025-08-16 22:01:12 -03:00
Asdow
fd9611ae04
Remove compiler warnings
2025-08-08 18:38:53 +03:00
Asdow
c62d767622
Update to Master
2025-08-08 18:00:31 +03:00
Asdow
1a8db5d15b
More conversions to SoldierID
2025-06-27 19:58:20 +03:00
Asdow
d95bae2bf6
Re-enable power generator fan sound effect for UB
2025-06-24 22:54:44 +03: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
4645a09722
Use SoldierID
2024-11-30 16:07:36 +02:00
Asdow
94a5972a85
Perform explicit casts from UINT8 to UINT16 for SoldierID
2024-11-18 23:38:00 +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
ef9aa1b027
Convert to SoldierID
2024-11-17 22:29:31 +02:00
Asdow
b6e8b0c5ff
Convert to SoldierID
2024-11-17 21:09:13 +02:00
Asdow
f50bdf99cc
Convert to SoldierID
2024-11-17 20:41:09 +02:00
Asdow
74d752d452
More conversions to SoldierID
2024-11-17 18:15:36 +02:00
Asdow
9d62b9a37a
Remove unused function parameters
2024-11-17 16:46:57 +02:00
Asdow
2e92da4e12
Convert to SoldierID
2024-11-17 16:43:39 +02:00
Asdow
f39078357b
Remove unused function parameters
2024-11-17 16:39:13 +02:00
Asdow
2e147d4bd7
Convert to SoldierID
2024-11-17 16:35:26 +02:00
Asdow
d28d46d974
SOLDIERTYPE::bOverrideMoveSpeed to SoldierID
2024-11-16 16:28:48 +02:00
Asdow
edb26a68fe
Guard against array out of bounds access
2024-11-16 16:25:28 +02:00
Asdow
23af6b6f3f
SoldierTakeDamage & SoldierTakeDelayedDamage to SoldierID
2024-11-16 00:47:14 +02:00
Asdow
b112d39fe2
Convert SOLDIERTYPE::EVENT_SoldierGotHit to SoldierID
2024-11-16 00:34:19 +02:00
Asdow
419b0c794d
SOLDIERTYPE::CreateSoldierCommon to SoldierID
2024-11-16 00:18:02 +02:00
Asdow
8ef7fb5ae4
Convert SOLDIERTYPE::usDragPersonID to SoldierID
2024-11-16 00:09:48 +02:00
Asdow
75deccbc44
Convert SOLDIERTYPE::ubRobotRemoteHolderID to SoldierID
2024-11-15 23:56:26 +02:00
Asdow
566ead5815
Convert SOLDIERTYPE::ubTargetID to SoldierID
2024-11-15 23:46:15 +02:00
Asdow
ee429fd1f4
Convert SOLDIERTYPE->ubAttackerID to SoldierID
2024-11-15 22:51:48 +02:00
Asdow
ecb29ae9bc
Convert SOLDIERTYPE->usChatPartnerID to SoldierID
2024-11-15 21:09:17 +02:00
Asdow
b98732daa7
Convert gusSelectedSoldier to SoldierID
2024-11-15 19:06:34 +02:00
Asdow
1345d92521
Convert Soldier Find.cpp to SoldierID
2024-11-14 00:45:50 +02:00
Asdow
508310be3e
Change UINT8 to UINT16 for soldierInitLists & hostiles in sector
2024-11-10 01:19:05 +02:00
Asdow
10250dc035
Merge branch 'master' into ExtraMercs
2024-11-09 13:44:53 +02:00
Asdow and GitHub
49a119e6b9
Convert INVTYPE boolean fields to flagmask ( #325 )
...
Rearranged fields from largest to smallest to remove alignment padding
2024-08-22 08:48:29 +03:00
Marco Costa and majcosta
dee2415d4a
simplify SOLDIERTYPE::GetDiseaseContactProtection( )
2024-04-03 22:09:05 -03:00
Marco Costa and majcosta
d670383f3a
add const accessor to Inventory
2024-04-03 22:09:05 -03:00
Asdow and GitHub
8f454e2aab
Container.cpp & .h delete ( #242 )
...
* Remove GetFilesInDirectory()
* Remove BuildFileDirectory
* Remove container.cpp & .h
Not used in the code
2023-10-20 21:30:39 +03:00
Asdow and GitHub
b8a870df02
Reduce code duplication ( #233 )
...
* Use ConvertGridNoToCenterCellXY instead of CenterX & CenterY
* Add direction utility function
We have a lot of places in the code that calculate direction based on center cell coordinates, but lack a utility function for it similar to other direction methods.
* Use utility function for calculating direction
* Use ConvertGridNoToCenterCellXY
* Use utility function for direction
* Use ConvertGridNoToCenterCellXY instead of CenterX & CenterY
* Use ConvertGridNoToCenterCellXY instead of CenterX & CenterY
* Remove CenterX & CenterY functions
Use ConvertGridNoToCenterCellXY instead
* Remove CenterX & CenterY calls from UB configuration
* Address review feedback
* Remove duplicate function
ConvertGridNoToCenterCellXY and ConvertMapPosToWorldTileCenter do the exact same thing
* Use PythSpacesAway instead of GetRangeFromGridNoDiff
Both functions calculate the same thing
* Remove GetRangeFromGridNoDiff
* Remove calls to abs()
The values end up being squared anyways making these unnecessary
2023-10-07 15:14:15 +03:00
Andrzej Fałkowski and GitHub
14ec138fc7
Fixed UI movement mode not switching to crawl on character collapse, leading to deadlocks ( #231 )
2023-10-02 19:32:15 +03:00
Andrzej Fałkowski and GitHub
a3be3ecd7e
Specific drug types and drug items for background and facilities. ( #226 )
2023-10-02 19:30:59 +03:00
Andrzej Fałkowski and GitHub
7edecd6849
Fixed vehicle body not properly removed when destroyed during ramming ( #210 )
2023-08-28 16:26:46 +03:00
rftrdev and GitHub
aaeea9aac8
Replace evolution with growth rates ( #201 )
2023-08-09 18:36:44 -07:00
Asdow
03482ffc3d
Merge branch 'master' into ExtraMercs
2023-07-26 13:17:49 +03:00
sun-alf
ab2a26accb
[Fix] A bunch of fixes for artillery strike
...
* Avoid using hard-coded Signal and HE mortar shell indices. This caused art.strikes malfunctioning in item mods.
* Trim max nubers of waves to duration of signal smoke. Otherwise art.strike turns into unnatural stupidity.
* If enemy AI tried to get art.strike but lacked of resources, player will not a warning anymore.
2023-05-22 22:06:18 +03:00
rftrdev and GitHub
a0aa58f9e5
Update disease flags (hand and face) so that they can be used on the same item ( #143 )
...
* Allow an item to have both disease flags enabled
* Remove extra line break for disease hand protection helptext
2023-05-15 00:51:37 -07:00
Asdow and GitHub
35109a5615
Guard against possible illegal array access (by Seven) ( #121 )
...
ClosestPanicTrigger() can return -1 but its use in indexing gTacticalStatus.bPanicTriggerIsAlarm was not checked in all the places in the code
2023-01-31 20:26:21 +02:00
rftrdev and GitHub
b5ec955324
Disable backpack climb check for non-player soldiers ( #117 )
2023-01-27 17:56:46 -08:00
Marco Antonio Jaguaribe Costa and Asdow
d4abc82488
Address review feedback
2023-01-19 00:13:08 +02:00
Marco Antonio Jaguaribe Costa and Asdow
8b1c4effa0
nuke all the #if 0's
...
scripted commit:
find . -not -path '*/.*' -and -not -path '*/ext*' -type d -exec coan source -R -E {} ';'
https://coan2.sourceforge.net/coan_man_1.html
2023-01-19 00:13:08 +02:00