Created 4 years ago2019-12-29 23:37:44 UTC by _Vissova_
if (name[0] == '!') //optimized -- don't check for current unless it's liquid (KGP)
{
if (!strncasecmp(name, "!cur_90", 7))
return CONTENTS_CURRENT_90;
if (!strncasecmp(name, "!cur_0", 6))
return CONTENTS_CURRENT_0;
if (!strncasecmp(name, "!cur_270", 8))
return CONTENTS_CURRENT_270;
if (!strncasecmp(name, "!cur_180", 8))
return CONTENTS_CURRENT_180;
if (!strncasecmp(name, "!cur_up", 7))
return CONTENTS_CURRENT_UP;
if (!strncasecmp(name, "!cur_dwn", 8))
return CONTENTS_CURRENT_DOWN;
Location: VHLT v34, HLCSG, brush.cpp, TextureContents()!cur_90_alternate
will also work.