CON: allow viewtype -8 for 'action', meaning to x-flip the shown sprite.

Similarly to how -5 and -7 and are accepted since r3859.

git-svn-id: https://svn.eduke32.com/eduke32@5335 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2015-08-29 10:21:52 +00:00
parent 4ed33de69d
commit c1a54c60db
3 changed files with 7 additions and 3 deletions

View file

@ -7868,8 +7868,12 @@ PALONLY:
k = getofs_viewtype7(s, t, getangle(s->x-ourx, s->y-oury), l<0);
break;
case 8:
case -8:
k = (((s->ang+3072+128-oura)&2047)>>8)&7;
t->cstat &= ~4;
if (l > 0)
t->cstat &= ~4;
else
t->cstat |= 4;
break;
default:
k = 0;

View file

@ -104,7 +104,7 @@ local function truetab(tab)
end
-- KEEPINSYNC lunacon.lua
local ALLOWED_VIEWTYPE = truetab { 0, 1, 2, 3,4, 5, 7, 8, -5, -7 }
local ALLOWED_VIEWTYPE = truetab { 0, 1, 2, 3,4, 5, 7, 8, -5, -7, -8 }
local function def_action_or_move(what, tab)
if (lastid[what] <= -(2^31)) then

View file

@ -1024,7 +1024,7 @@ function check.reserved_bits(flags, allowedbits, suffix)
end
-- KEEPINSYNC control.lua
Define.ALLOWED_VIEWTYPE = truetab { 0, 1, 2, 3,4, 5, 7, 8, -5, -7 }
Define.ALLOWED_VIEWTYPE = truetab { 0, 1, 2, 3,4, 5, 7, 8, -5, -7, -8 }
function Define.composite(labeltype, identifier, ...)
local oldtype = g_labeltype[identifier]