mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
- UB Improvements / Cleanup (by Jazz)
o Now there are 2 ways to play UB (1.13 and Vanilla): vfs_config.UB113.ini, vfs_config.UBVanilla.ini o UB: Source Code cleanup: Replaced hardcoded merc profiles with proper ENUMS, ... o Updated / added UB-Config values git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6330 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -3607,10 +3607,10 @@ void CopyProfileItems( SOLDIERTYPE *pSoldier, SOLDIERCREATE_STRUCT *pCreateStruc
|
||||
// since keys depend on 2 values, they pretty much have to be hardcoded.
|
||||
// and if a case isn't handled here it's better to not give any key than
|
||||
// to provide one which doesn't work and would confuse everything.
|
||||
switch( pCreateStruct->ubProfile )
|
||||
|
||||
#ifdef JA2UB
|
||||
if ( pCreateStruct->ubProfile == MORRIS_UB )
|
||||
{
|
||||
#ifdef JA2UB
|
||||
case 75: //MORRIS:
|
||||
if ( pProfile->inv[ cnt ] >= KEY_1 && pProfile->inv[ cnt ] <= KEY_32)
|
||||
{
|
||||
fRet = CreateKeyObject( &gTempObject , pProfile->bInvNumber[ cnt ], 32 );
|
||||
@@ -3620,7 +3620,13 @@ void CopyProfileItems( SOLDIERTYPE *pSoldier, SOLDIERCREATE_STRUCT *pCreateStruc
|
||||
//{
|
||||
// memset( &(pSoldier->inv[cnt]), 0, sizeof( OBJECTTYPE ) );
|
||||
//}
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
||||
switch( pCreateStruct->ubProfile )
|
||||
{
|
||||
#ifdef JA2UB
|
||||
|
||||
#endif
|
||||
|
||||
// WANNE: Changed KEY_32 to KEY_8 because we only have 8 keys defined in Items.xml
|
||||
|
||||
Reference in New Issue
Block a user