mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
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:
parent
4ed33de69d
commit
c1a54c60db
3 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue