Got a unit here that I want to be right up next to whatever it's building. But it looks like the minimum value is 32 or so for builddistance. Lower than that, it just ignores it and builds from about 32 units or so away. Anyone know a way to bypass this or otherwise can it be fixed?
Thanks
builddistance set to low value ignored?
Moderator: Moderators
Sim\Units\UnitDefHandler.cpp
Shouldnt the default value be 128 if it's then being raised up to 128 or above?
Code: Select all
ud.buildDistance=atof(tdfparser.SGetValueDef("64", "UNITINFO\\Builddistance").c_str());
ud.buildDistance=std::max(128.f,ud.buildDistance);