Asdow
cbf53f8848
TacticalStatusType::ubLastRequesterSurgeryTargetID to SoldierID
2024-11-17 10:26:01 +02:00
Asdow
f0be44bb42
Convert to SoldierID
...
TacticalStatusType::ubEnemySightingOnTheirTurnEnemyID
TacticalStatusType::ubEnemySightingOnTheirTurnPlayerID
TacticalTeamType::ubLastMercToRadio
2024-11-17 10:23:01 +02:00
Asdow
61c5a41bea
LocateSoldier() & HandleMercLeavingEquipmentInDrassen() & HandleMercLeavingEquipmentInOmerta()
2024-11-17 01:35:49 +02:00
Asdow
c475f9e4e6
Convert MapScreenCharacterSt::usSolID to SoldierID
2024-11-17 01:25:00 +02:00
Asdow
2918801f75
AddSoldierToSector & OBJECTTYPE::soldierID changed to SoldierID
2024-11-16 20:55:08 +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
3ff4cc0c19
GENERAL_SAVE_INFO members to SoldierID
2024-11-16 01:22:20 +02:00
Asdow
41fc407de6
Convert TacticalRemoveSoldier to SoldierID
2024-11-16 00:55:51 +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
153d402065
Update Soldier Control.h
2024-11-15 23:58:28 +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
f823cb9718
Update Soldier Control.h
2024-11-15 23:32:13 +02:00
Asdow
5de6f77f2e
Convert SOLDIERTYPE::ubOppNum to SoldierID
2024-11-15 23:26:22 +02:00
Asdow
1a172427ef
Update Soldier Create.cpp
2024-11-15 23:01:52 +02:00
Asdow
8346d5bfa1
Convert SOLDIERTYPE->ubNextToPreviousAttackerID to SoldierID
2024-11-15 22:58:25 +02:00
Asdow
131172e41a
Convert SOLDIERTYPE->ubPreviousAttackerID to SoldierID
2024-11-15 22:54:44 +02:00
Asdow
ee429fd1f4
Convert SOLDIERTYPE->ubAttackerID to SoldierID
2024-11-15 22:51:48 +02:00
Asdow
9079f2e0c1
Whitespace changes to SOLDIERTYPE
2024-11-15 21:20:49 +02:00
Asdow
ecb29ae9bc
Convert SOLDIERTYPE->usChatPartnerID to SoldierID
2024-11-15 21:09:17 +02:00
Asdow
83b3485e58
Convert prisonerdialoguetargetID to SoldierID
2024-11-15 21:04:05 +02:00
Asdow
b98732daa7
Convert gusSelectedSoldier to SoldierID
2024-11-15 19:06:34 +02:00
Asdow
e9c8124dc2
Fix UB compilation
2024-11-15 19:05:19 +02:00
Asdow
337cf1804f
Update Overhead Types.h
2024-11-15 01:32:35 +02:00
Asdow
b9deb3cc19
PossiblyStartEnemyTaunt( uiTargetId ) to SoldierID
2024-11-15 01:31:22 +02:00
Asdow
6a0d02e9b9
Change type from BOOLEAN(!) to SoldierID
2024-11-15 01:03:21 +02:00
Asdow
568aa0a0b8
Update Item Types.cpp
2024-11-15 00:04:39 +02:00
Asdow
1345d92521
Convert Soldier Find.cpp to SoldierID
2024-11-14 00:45:50 +02:00
Asdow
0103a871cc
Operator overloads for accessing SOLDIERTYPE* through SoldierID
2024-11-14 00:43:48 +02:00
Asdow
f5b1447646
Move MercSlots zeroing to same loop where MercPtrs are set
...
One less for loop that way
2024-11-13 22:12:37 +02:00
Asdow
4d740055da
Provide access function to MenPtrs, MercPtrs & MercSlots
...
All raw array accesses should be done with these instead.
2024-11-13 01:33:32 +02:00
Asdow
aad6ed8297
Implemented SoldierID type to replace SOLDIERTYPE->ubID
...
Goal is to convert all use of SOLDIERTYPE->ubID and any other ID fields that reference the same ID to a safer type than UINT16. Same with any function that's supposed to take ubID
2024-11-13 01:29:36 +02:00
Asdow
d6370b7463
Fix invisible cows and bloodcats
2024-11-13 01:21:55 +02:00
Asdow
6c33009fab
Remove bLastKnownEnemies from SECTORINFO
...
As per the old comment, even though the field value is updated partially according to whether there are known enemies present or not, it's not used for anything.
2024-11-11 00:14:51 +02:00
Asdow
fcf2b27d1a
More UINT8 -> UINT16 changes
2024-11-11 00:08:30 +02:00
Asdow
508310be3e
Change UINT8 to UINT16 for soldierInitLists & hostiles in sector
2024-11-10 01:19:05 +02:00
Asdow
5cf0ef4bde
Correct variables from INT8 to INT16
2024-11-09 22:52:21 +02:00
Asdow
2b024d63c6
Fix endless loop
2024-11-09 16:46:55 +02:00
Asdow
a81820d0d7
Fix UB compilation
2024-11-09 16:46:39 +02:00
Asdow
17875978e0
Update LOS.cpp
...
Fix missing variable declaration
2024-11-09 15:24:30 +02:00
Asdow
4e253d0ec0
Update Dialogue Control.cpp
...
Fix an access to member variable that prevented compilation
2024-11-09 15:24:10 +02:00
Asdow
10250dc035
Merge branch 'master' into ExtraMercs
2024-11-09 13:44:53 +02:00
Asdow and GitHub
f48fadb802
Improve AbstractXMLParser error reporting ( #330 )
...
The more detailed error message that used to go only to Livelog.txt is now also displayed in the ingame error screen, providing more helpful error message to players when making bug reports/asking for help
2024-11-08 23:50:52 +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
Asdow and GitHub
caa02cd6b7
Read new MercOpinions.xml format ( #323 )
...
Requires accompanying gameDir change.
MercOpinions.xml now only contains opinions that are not 0. A new tag with fields "id" and "modifier" are used instead of old ones that had 255 <Opinion%d> $value$ </Opinion%d> tags for all profiles.
Loading time of MercOpinions.xml went down from ~4.047 s to 0.011 s due to this change with default 1.13 VFS config.
A small cmd utility tool for converting existing MercOpinions.xml data into the new format is available at https://github.com/Asdow/JA2-ConvertXMLData/tree/master
2024-08-13 00:29:48 +03:00
Asdow and GitHub
3391c6d777
Ignore mercs away on minievents for food status updates ( #322 )
2024-08-11 13:30:49 +03:00