- removed STAT_INVENTORY.
This was causing issues with sprite sorting. For this to work as intended, all actors in the world that display sprites need to remain in spawn order, including inventory items. The only thing this statnum was used for were some bot related search actions which are simply not worth breaking actual maps for some very minor performance gain.
This commit is contained in:
parent
ca8ef7f3f3
commit
5ff0abe568
4 changed files with 3 additions and 4 deletions
|
|
@ -259,7 +259,7 @@ void DBot::ThinkForMove (ticcmd_t *cmd)
|
|||
r = pr_botmove();
|
||||
if (r < 128)
|
||||
{
|
||||
TThinkerIterator<AInventory> it (STAT_INVENTORY, bglobal.firstthing);
|
||||
TThinkerIterator<AInventory> it (MAX_STATNUM+1, bglobal.firstthing);
|
||||
AInventory *item = it.Next();
|
||||
|
||||
if (item != NULL || (item = it.Next()) != NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue