Enhancement: now larger

EQ2Emulator Development forum.

Moderator: Team Members

Post Reply
User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Enhancement: now larger

Post by Ememjr » Sat Mar 23, 2019 5:44 pm

item stacks are now able to be bigger (int8 to int16)
this should work with COE and Higher

but am testing with dov

will be committed sometime tommorrow

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Enhancement: now larger

Post by Jabantiz » Mon Mar 25, 2019 5:18 pm

So as I just discovered linux doesn't seem to like min()

Code: Select all

min(item->details.count, 255)
I had to change it to the following for linux to compile

Code: Select all

(std::min)(item->details.count, (int16)255)
I had to put std::min in () otherwise windows still tried to use the version that it defines and gives errors, both had to be the same type as well so I had to put the type in front of the hardcoded value.


This is just an FYI as I had no clue windows versions of min conflicted with the standard lib version of min or that linux wouldn't use std::min by default even though we have "using namespace std"

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests