Avoid warnings when defining only extra in tilefromtexture

# Conflicts:
#	source/build/src/defs.cpp
This commit is contained in:
Evan Ramos 2020-04-04 06:47:34 -05:00 committed by Christoph Oelckers
parent 26333dcaad
commit 8b0da35cb8

View file

@ -772,7 +772,7 @@ static int32_t defsparser(scriptfile *script)
if (haveextra)
picanm[tile].extra = extra;
if (EDUKE32_PREDICT_FALSE(flags == 0 && !havexoffset && !haveyoffset))
if (EDUKE32_PREDICT_FALSE(flags == 0 && !havexoffset && !haveyoffset && !haveextra))
Printf("\nError: missing 'file name' for tilefromtexture definition near line %s:%d",
script->filename, scriptfile_getlinum(script,texturetokptr));
break;