mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Merged from revision: 7189
Update (Rev. 7124): Enhanced Description Box (EDB) Compare Feature (by anv) - changed shortcut from "alt" to "ctrl" to prevent accidental sales (ctrl+LMB apparently places item in inventory), - restored displaying code to more coherent state, - all columns can be compared - base value, modifier and final value too. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7190 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+1799
-3453
File diff suppressed because it is too large
Load Diff
@@ -6926,7 +6926,7 @@ void RenderItemDescriptionBox( )
|
||||
{
|
||||
OBJECTTYPE *gpComparedItemDescObject;
|
||||
BOOLEAN fComparisonMode = FALSE;
|
||||
if( _KeyDown( ALT ) && gfCheckForCursorOverMapSectorInventoryItem )
|
||||
if( _KeyDown( CTRL ) && gfCheckForCursorOverMapSectorInventoryItem )
|
||||
{
|
||||
gpComparedItemDescObject = &pInventoryPoolList[ ( iCurrentInventoryPoolPage * MAP_INVENTORY_POOL_SLOT_COUNT ) + iCurrentlyHighLightedItem].object;// = pInventoryPoolList[ iCurrentSlot + iFirstSlotOnPage ].object;
|
||||
if( gpComparedItemDescObject != NULL )
|
||||
@@ -7392,7 +7392,7 @@ void RenderItemDescriptionBox( )
|
||||
{
|
||||
OBJECTTYPE *gpComparedItemDescObject;
|
||||
BOOLEAN fComparisonMode = FALSE;
|
||||
if( _KeyDown( ALT ) && gfCheckForCursorOverMapSectorInventoryItem )
|
||||
if( _KeyDown( CTRL ) && gfCheckForCursorOverMapSectorInventoryItem )
|
||||
{
|
||||
gpComparedItemDescObject = &pInventoryPoolList[ ( iCurrentInventoryPoolPage * MAP_INVENTORY_POOL_SLOT_COUNT ) + iCurrentlyHighLightedItem].object;// = pInventoryPoolList[ iCurrentSlot + iFirstSlotOnPage ].object;
|
||||
if( gpComparedItemDescObject != NULL )
|
||||
|
||||
Reference in New Issue
Block a user