mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
Merged from revision: 6824
Map Editor Fixes/Improvements (by Buggler) - Better UI feedback after last item deleted from item stack in editor item mode - Improved editor room number increment code. 'Shift + LMB' when drawing room numbers will reuse same room number on next input - externalized hardcoded button tooltip text in editor tile selection window git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6825 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1169,8 +1169,16 @@ void DeleteSelectedItem()
|
||||
gpCurrItemPoolNode = pIPHead;
|
||||
if( gpCurrItemPoolNode )
|
||||
{
|
||||
//get the item pool at this node's gridno.
|
||||
GetItemPoolFromGround( gpCurrItemPoolNode->sGridNo, &gpItemPool );
|
||||
Assert( gpItemPool );
|
||||
|
||||
MarkMapIndexDirty( gpItemPool->sGridNo );
|
||||
SpecifyItemToEdit( &gWorldItems[ gpItemPool->iItemIndex ].object, gpItemPool->sGridNo );
|
||||
if( gsItemGridNo != -1 )
|
||||
{
|
||||
CenterScreenAtMapIndex( gsItemGridNo );
|
||||
}
|
||||
}
|
||||
//remove node
|
||||
HideItemCursor( sGridNo );
|
||||
|
||||
Reference in New Issue
Block a user