mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Fix:
- price and militia resource points display in sector inventory was incorrect and didn't take Shift key into account - display of militia resource below the map didn't work if MILITIA_VOLUNTEER_POOL was FALSE Enhancements: - militia resource points display below map now better organized - militia resource points display below map now available when in sector inventory and pressing ALT key - conversion of items to militia resource points now available with ALT + RMB, ALT + Shift + RMB and ALT + Shift + Y + RMB just like quick sell feature works git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8275 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2645,7 +2645,7 @@ BOOLEAN ConvertItemToResources( OBJECTTYPE& object, BOOLEAN fAll, FLOAT& arValue
|
||||
}
|
||||
|
||||
UINT32 bullets = 0;
|
||||
for ( UINT8 ubLoop = 0; ubLoop < object.ubNumberOfObjects; ++ubLoop )
|
||||
for ( UINT8 ubLoop = 0; ubLoop < ubNumberOfObjects; ++ubLoop )
|
||||
{
|
||||
bullets += object[ubLoop]->data.ubShotsLeft;
|
||||
}
|
||||
@@ -2654,7 +2654,7 @@ BOOLEAN ConvertItemToResources( OBJECTTYPE& object, BOOLEAN fAll, FLOAT& arValue
|
||||
}
|
||||
else
|
||||
{
|
||||
for ( UINT8 ubLoop = 0; ubLoop < object.ubNumberOfObjects; ++ubLoop )
|
||||
for ( UINT8 ubLoop = 0; ubLoop < ubNumberOfObjects; ++ubLoop )
|
||||
{
|
||||
if ( Item[usItemType].usItemClass & IC_GUN )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user