Skip to content

Commit

Permalink
Changed: Max item capacity on containers changed from 255 to 125
Browse files Browse the repository at this point in the history
This is required to make containers works properly on Enhanced Clients, because containers on these clients have hardcoded capacity of 125 items (OSI already uses this value since many years ago, even before enhanced client)
  • Loading branch information
coruja747 committed Aug 3, 2016
1 parent 6de7d63 commit 1fa0504
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/REVISIONS-56-SERIES.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,7 @@ Changed: Updated pick/drop sound on items/containers.
01-08-2016, Coruja
Added: ADD function now supports a new 2nd arg to set the obj amount (eg: 'add i_bandage 10', 'add c_gargoyle 3', ...)
Fixed: Items inside trade window not firing @DropOn_Item trigger when the trade move the item to player bacpkack.
PS: Using return 1 here will not cancel the trade, this must be done directly on @TradeAccepted/@CharTradeAccepted triggers.
PS: Using return 1 here will not cancel the trade, this must be done directly on @TradeAccepted/@CharTradeAccepted triggers.

03-08-2016, Coruja
Changed: Max item capacity on containers changed from 255 to 125. This is required to make containers works properly on Enhanced Clients.
2 changes: 1 addition & 1 deletion src/common/grayproto.h
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ struct CEventCharDef
struct CEvent // event buffer from client to server..
{
#define MAX_BUFFER 15360 // Buffer Size (For socket operations)
#define MAX_ITEMS_CONT 255 // Max items in a container. (arbitrary)
#define MAX_ITEMS_CONT 125 // Max items in a container. (arbitrary)
#define MAX_MENU_ITEMS 64 // number of items in a menu. (arbitrary)
#define MAX_CHARS_PER_ACCT 7

Expand Down

0 comments on commit 1fa0504

Please sign in to comment.