Fix brown-wall robots in D1 non-editor build

tmap == -1 means no override, but 7b33018c changed the comparison to be
true when given negative inputs.  Since -Wsign-compare is off, this was
not caught by the compiler.
This commit is contained in:
Kp 2014-06-28 15:29:25 +00:00
parent d0b3d9e32e
commit d6c012ce4d

View file

@ -178,6 +178,8 @@ static int convert_wclip(int wc) {
}
int convert_tmap(int tmap)
{
if (tmap == -1)
return tmap;
return (tmap >= NumTextures) ? tmap % NumTextures : tmap;
}
static int convert_polymod(int polymod) {