Page 1 of 1

Enhancement: now larger

Posted: Sat Mar 23, 2019 5:44 pm
by Ememjr
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

Re: Enhancement: now larger

Posted: Mon Mar 25, 2019 5:18 pm
by Jabantiz
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"