mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-13 02:39:37 +00:00
Remove dead code in game item manager
This commit is contained in:
parent
e0a1d27dc8
commit
3baf60ad1d
1 changed files with 5 additions and 5 deletions
|
@ -845,9 +845,9 @@ void CGameItemManager::buildNpcSpecificItems()
|
||||||
//-----------------------------------------------
|
//-----------------------------------------------
|
||||||
// createItem :
|
// createItem :
|
||||||
//-----------------------------------------------
|
//-----------------------------------------------
|
||||||
NLMISC_COMMAND(createItem,"create a new item","<sheet id><quality><owner id>")
|
NLMISC_COMMAND(createItem,"create a new item","<sheet id><quality>")
|
||||||
{
|
{
|
||||||
if( args.size() < 3 )
|
if( args.size() < 2 )
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -859,9 +859,9 @@ NLMISC_COMMAND(createItem,"create a new item","<sheet id><quality><owner id>")
|
||||||
uint16 quality;
|
uint16 quality;
|
||||||
NLMISC::fromString(args[1], quality);
|
NLMISC::fromString(args[1], quality);
|
||||||
|
|
||||||
uint32 ownerIdTmp;
|
//uint32 ownerIdTmp;
|
||||||
NLMISC::fromString(args[2], ownerIdTmp);
|
//NLMISC::fromString(args[2], ownerIdTmp);
|
||||||
CEntityId ownerId(RYZOMID::object,ownerIdTmp);
|
//CEntityId ownerId(RYZOMID::object,ownerIdTmp);
|
||||||
|
|
||||||
// CGameItemPtr item = GameItemManager.createItem( sheetId, quality, ownerId, -1, true,true );
|
// CGameItemPtr item = GameItemManager.createItem( sheetId, quality, ownerId, -1, true,true );
|
||||||
CGameItemPtr item = GameItemManager.createItem( sheetId, quality, true, true );
|
CGameItemPtr item = GameItemManager.createItem( sheetId, quality, true, true );
|
||||||
|
|
Loading…
Reference in a new issue