From 12e6655e29be7565e6e554ffba5cb051baccf8c9 Mon Sep 17 00:00:00 2001 From: lalien Date: Fri, 20 Jul 2007 08:03:23 +0000 Subject: [PATCH] - new shortcut: Ctrl+Del in sector inventory deletes all items in sector git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1080 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Strategic/mapscreen.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Strategic/mapscreen.cpp b/Strategic/mapscreen.cpp index c3e1c7bd..ac18e782 100644 --- a/Strategic/mapscreen.cpp +++ b/Strategic/mapscreen.cpp @@ -1069,7 +1069,7 @@ void MapscreenMarkButtonsDirty(); extern BOOLEAN CanRedistributeMilitiaInSector( INT16 sClickedSectorX, INT16 sClickedSectorY, INT8 bClickedTownId ); extern INT32 GetNumberOfMercsInUpdateList( void ); - +void DeleteAllItemsInInventoryPool(); #ifdef JA2TESTVERSION void TestDumpStatChanges( void ); @@ -5212,6 +5212,13 @@ void GetMapKeyboardInput( UINT32 *puiNewEvent ) break; case DEL: + // show the inventory pool? + if( fShowMapInventoryPool && _KeyDown( CTRL ) ) + { + DeleteAllItemsInInventoryPool(); + break; + } + // down one sublevel GoDownOneLevelInMap( ); break;