mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Update inventory arrays to be vectors. Add class for inventory. Change some structs that use inventories to classes to provide constructors, destructors, etc. Note that with this update all file operations should still be compatible with previous files.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@973 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -123,7 +123,9 @@ void ValidateEdgepoints()
|
||||
UINT16 usValidEdgepoints;
|
||||
SOLDIERTYPE Soldier;
|
||||
|
||||
memset( &Soldier, 0, sizeof( SOLDIERTYPE ) );
|
||||
// WDS - Clean up inventory handling
|
||||
// memset( &Soldier, 0, SIZEOF_SOLDIERTYPE );
|
||||
Soldier.initialize();
|
||||
Soldier.bTeam = 1;
|
||||
|
||||
//north
|
||||
@@ -435,7 +437,9 @@ void ClassifyEdgepoints()
|
||||
SOLDIERTYPE Soldier;
|
||||
INT16 sGridNo = -1;
|
||||
|
||||
memset( &Soldier, 0, sizeof( SOLDIERTYPE ) );
|
||||
// WDS - Clean up inventory handling
|
||||
// memset( &Soldier, 0, SIZEOF_SOLDIERTYPE );
|
||||
Soldier.initialize();
|
||||
Soldier.bTeam = 1;
|
||||
|
||||
//north
|
||||
@@ -1636,7 +1640,9 @@ UINT8 CalcMapEdgepointClassInsertionCode( INT16 sGridNo )
|
||||
INT16 sClosestSpot2 = NOWHERE, sClosestDist2 = 0x7FFF;
|
||||
BOOLEAN fPrimaryValid = FALSE, fSecondaryValid = FALSE;
|
||||
|
||||
memset( &Soldier, 0, sizeof( SOLDIERTYPE ) );
|
||||
// WDS - Clean up inventory handling
|
||||
// memset( &Soldier, 0, SIZEOF_SOLDIERTYPE );
|
||||
Soldier.initialize();
|
||||
Soldier.bTeam = 1;
|
||||
Soldier.sGridNo = sGridNo;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user