mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Editor Fixes (by Buggler)
- Fixed item deletion from item pool when no item selected - Added Shift, Ctrl, Ctrl+Shift hotkeys to item scrolling click - Fixed Rdn button not depressed upon clicking other item buttons - Fixed B, R, S text not shown for random items git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5949 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -181,6 +181,7 @@ BOOLEAN EditModeInit( void );
|
||||
BOOLEAN EditModeShutdown( void );
|
||||
void EnsureStatusOfEditorButtons();
|
||||
|
||||
extern INT8 gbEditingMode;
|
||||
|
||||
extern BOOLEAN fAllDone;
|
||||
extern DisplayList Selection;
|
||||
@@ -1464,7 +1465,7 @@ void HandleKeyboardShortcuts( )
|
||||
break;
|
||||
|
||||
case DEL:
|
||||
if( iCurrentTaskbar == TASK_ITEMS )
|
||||
if( iCurrentTaskbar == TASK_ITEMS && gbEditingMode != 0 ) //gbEditingMode != EDITING_NOTHING
|
||||
DeleteSelectedItem();
|
||||
else if( gsSelectedMercID != -1 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user